STIRA  0.1
Public Member Functions | List of all members
stira::imagetools::FisheyeCorrector Class Reference

simple class to correct Fisheye distortion Reference: http://www.tannerhelland.com/4743/simple-algorithm-correcting-lens-distortion/ More...

#include <FisheyeCorrector.h>

Public Member Functions

 FisheyeCorrector ()
 constructor
 
 ~FisheyeCorrector ()
 destructor
 
ImageApplyCorrect (Image *pImageIn, double strength, double zoom)
 Generates new image by computing inverse fisheye warp. More...
 
void ApplyCorrect (ArrayGrid< double > *pGridIn, ArrayGrid< double > *pGridOut, double strength, double zoom)
 Inverse fisheye warps input grid. More...
 

Detailed Description

simple class to correct Fisheye distortion Reference: http://www.tannerhelland.com/4743/simple-algorithm-correcting-lens-distortion/

Member Function Documentation

Image * stira::imagetools::FisheyeCorrector::ApplyCorrect ( Image pImageIn,
double  strength,
double  zoom 
)

Generates new image by computing inverse fisheye warp.

Parameters
pImageIninput image to inverse warp
strengthof the warping
zoomzoom to apply

References stira::imagedata::Image::GetBands(), stira::imagedata::Image::GetHeight(), and stira::imagedata::Image::GetWidth().

void stira::imagetools::FisheyeCorrector::ApplyCorrect ( ArrayGrid< double > *  pGridIn,
ArrayGrid< double > *  pGridOut,
double  strength,
double  zoom 
)

Inverse fisheye warps input grid.

Parameters
pGridIninput grid to inverse warp
pGridOutresult grid in which result of inverse warp is written
strengthof the warping
zoomzoom to apply

References stira::common::MathUtils::ClipValue(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::SetValue(), stira::common::Point< T >::x, and stira::common::Point< T >::y.


The documentation for this class was generated from the following files: