STIRA
0.1
|
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 | |
Image * | ApplyCorrect (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... | |
simple class to correct Fisheye distortion Reference: http://www.tannerhelland.com/4743/simple-algorithm-correcting-lens-distortion/
Image * stira::imagetools::FisheyeCorrector::ApplyCorrect | ( | Image * | pImageIn, |
double | strength, | ||
double | zoom | ||
) |
Generates new image by computing inverse fisheye warp.
pImageIn | input image to inverse warp |
strength | of the warping |
zoom | zoom 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.
pGridIn | input grid to inverse warp |
pGridOut | result grid in which result of inverse warp is written |
strength | of the warping |
zoom | zoom 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.