175 float az = H(0,2)*p.
x + H(1,2) * p.
y + H(2,2);
177 ( H(0,1)*p.
x + H(1,1) * p.
y + H(2,1) ) / az );
182 return apply_homography(*
this,p);
187 float az = H(0,2)*p.x + H(1,2) * p.y + H(2,2);
188 return utils::Point(round(( H(0,0)*p.x + H(1,0) * p.y + H(2,0) ) / az),
189 round(( H(0,1)*p.x + H(1,1) * p.y + H(2,1) ) / az) );
194 return apply_homography_int(*
this, p);
FixedMatrix< T, 3, 3 > Super
super class typedef for shorter super-class references
Definition: Homography2D.h:158
utils::Point32f apply_int(const utils::Point32f &p) const
applies the homography
Definition: Homography2D.h:193
Powerful and highly flexible matrix class implementation.
Definition: FixedMatrix.h:172
undocument this line if you encounter any issues!
Definition: Any.h:37
float y
y position of this point
Definition: Point32f.h:48
use the simple algorithm (
Definition: Homography2D.h:162
GenericHomography2D()
Empty constructor.
Definition: Homography2D.h:167
utils::Point32f apply(const utils::Point32f &p) const
applies the homography
Definition: Homography2D.h:181
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
static utils::Point apply_homography_int(const FixedMatrix< float, 3, 3 > &H, const utils::Point &p)
applies a given homography matrix
Definition: Homography2D.h:186
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
#define ICLMath_IMP
Definition: CompatMacros.h:172
float x
x position of this point
Definition: Point32f.h:45
GenericHomography2D< float > Homography2D
default homography 2D type definition (usually float depth is enough)
Definition: Homography2D.h:199
static utils::Point32f apply_homography(const FixedMatrix< float, 3, 3 > &H, const utils::Point32f &p)
applies a given homography matrix
Definition: Homography2D.h:174
use the advanced algorithm (
Definition: Homography2D.h:163
Utility structure that represents a 2D homography (implemented for float and double)
Definition: Homography2D.h:156
Algorithm
Internally used algorithm type.
Definition: Homography2D.h:161