TuttleOFX
1
|
Contains functions to map coordinates between : * canonical coordinates system (ofx) e.g PAL D1. More...
#include <lensDistortProcessParams.hpp>
Public Types | |
typedef F | Float |
typedef boost::gil::point2< Float > | Point2 |
Public Member Functions | |
virtual | ~CoordonatesSystemParams ()=0 |
Point2 | pixelToNormalized (const Point2 &p) const |
conversion functions | |
Point2 | normalizedToPixel (const Point2 &pn) const |
Point2 | pixelToCenterNormalized (const Point2 &p) const |
template<typename F2 > | |
Point2 | pixelToCenterNormalized (const boost::gil::point2< F2 > &p) const |
Point2 | centerNormalizedToPixel (const Point2 &pn) const |
Data Fields | |
Point2 | _imgSizeSrc |
Point2 | _imgCenterSrc |
Point2 | _imgCenterDst |
F | _imgHalfDiagonal |
half diagonal of the image (to work between -0.5 and 0.5) | |
F | _pixelRatio |
Contains functions to map coordinates between : * canonical coordinates system (ofx) e.g PAL D1.
----------------------------- 720.0, 576.0 | | | | | | | | | | ----------------------------- 0.0, 0.0 * centered normalized coordinate system (custom, only depending on image width) ----------------------------- 0.5, 0.5 | | |---------------------------| | | | | | 0.0, 0.0 | | | | | |---------------------------| | | ----------------------------- -0.5, -0.5
Definition at line 38 of file lensDistortProcessParams.hpp.
typedef F tuttle::plugin::lens::CoordonatesSystemParams< F >::Float |
Definition at line 41 of file lensDistortProcessParams.hpp.
typedef boost::gil::point2<Float> tuttle::plugin::lens::CoordonatesSystemParams< F >::Point2 |
Reimplemented in tuttle::plugin::lens::AdvancedLensDistortParams< F >, tuttle::plugin::lens::AdvancedLensDistortParams< Scalar >, tuttle::plugin::lens::NormalLensDistortParams< F >, and tuttle::plugin::lens::NormalLensDistortParams< Scalar >.
Definition at line 42 of file lensDistortProcessParams.hpp.
tuttle::plugin::lens::CoordonatesSystemParams< F >::~CoordonatesSystemParams | ( | ) | [pure virtual] |
Definition at line 94 of file lensDistortProcessParams.hpp.
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::centerNormalizedToPixel | ( | const Point2 & | pn | ) | const [inline] |
Definition at line 85 of file lensDistortProcessParams.hpp.
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::normalizedToPixel | ( | const Point2 & | pn | ) | const [inline] |
Definition at line 64 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::centerNormalizedToPixel(), and tuttle::plugin::lens::NormalLensDistortParams< Scalar >::lensCenterNormalizedToPixel().
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::pixelToCenterNormalized | ( | const Point2 & | p | ) | const [inline] |
Definition at line 72 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::pixelToCenterNormalized().
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::pixelToCenterNormalized | ( | const boost::gil::point2< F2 > & | p | ) | const [inline] |
Definition at line 78 of file lensDistortProcessParams.hpp.
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::pixelToNormalized | ( | const Point2 & | p | ) | const [inline] |
conversion functions
Definition at line 55 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::pixelToCenterNormalized(), and tuttle::plugin::lens::NormalLensDistortParams< Scalar >::pixelToLensCenterNormalized().
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::_imgCenterDst |
Definition at line 47 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::centerNormalizedToPixel(), tuttle::plugin::lens::LensDistortPlugin::getProcessParams(), and main().
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::_imgCenterSrc |
Definition at line 46 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::LensDistortPlugin::getProcessParams(), main(), and tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::pixelToCenterNormalized().
F tuttle::plugin::lens::CoordonatesSystemParams< F >::_imgHalfDiagonal |
half diagonal of the image (to work between -0.5 and 0.5)
Definition at line 48 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::LensDistortPlugin::getProcessParams(), tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::normalizedToPixel(), and tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::pixelToNormalized().
Point2 tuttle::plugin::lens::CoordonatesSystemParams< F >::_imgSizeSrc |
Definition at line 45 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::LensDistortPlugin::getProcessParams().
F tuttle::plugin::lens::CoordonatesSystemParams< F >::_pixelRatio |
Definition at line 49 of file lensDistortProcessParams.hpp.
Referenced by tuttle::plugin::lens::LensDistortPlugin::getProcessParams(), main(), tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::normalizedToPixel(), and tuttle::plugin::lens::CoordonatesSystemParams< Scalar >::pixelToNormalized().