25 #include <Base/Common/BIASpragmaStart.hh>
27 #ifndef __HomographyMapping_hh__
28 #define __HomographyMapping_hh__
30 #include <Image/BackwardMapping.hh>
31 #include <Geometry/HMatrix.hh>
42 template <
class InputStorageType,
class OutputStorageType>
71 virtual int GetBoundingBox(
unsigned int srcwidth,
unsigned int srcheight,
72 unsigned int sinkwidth,
unsigned int sinkheight,
79 HMatrix GetChangedHomography()
const;
84 virtual int GetSourceCoordinates_(
const HomgPoint2D& sink,
113 #include <Base/Common/BIASpragmaEnd.hh>
class HomgPoint2D describes a point with 2 degrees of freedom in projective coordinates.
a 3x3 Matrix describing projective transformations between planes
Maps image src to image sink with homography H (software implementation)
Abstract base class to map an image (texture) src to an image sink with an arbitrary continuous funct...
HMatrix H_
the homography for backward mapping: run over sink and compute source = H_ * sink ...
void SetHomography(const HMatrix &H)
set your homography H (source = H * sink) before calling Map()