25 #include <Base/Common/BIASpragmaStart.hh>
27 #ifndef __AffineMapping_hh__
28 #define __AffineMapping_hh__
30 #include <Image/BackwardMapping.hh>
43 template<
class InputStorageType,
class OutputStorageType>
45 InputStorageType, OutputStorageType>
66 BIASERR (
"dont copy me - not implemented." );
74 const double&a21,
const double&a22,
const double& dx,
118 ComputeScales(
double& large,
double& smallN,
double& cosphi,
119 double& costheta)
const;
128 GetBoundingBox(
unsigned int srcwidth,
unsigned int srcheight,
129 unsigned int sinkwidth,
unsigned int sinkheight,
int &tlx,
int &tly,
160 #include <Base/Common/BIASpragmaEnd.hh>
class HomgPoint2D describes a point with 2 degrees of freedom in projective coordinates.
double a11_
the homography for backward mapping: run over sink and compute source = A * sink + d ...
Abstract base class to map an image (texture) src to an image sink with an arbitrary continuous funct...
AffineMapping(const AffineMapping &src)
required because assignment is
Maps image src to image sink with affine transformation.
void SetAffineTransformation(const double &a11, const double &a12, const double &a21, const double &a22, const double &dx, const double &dy)
set A (source = A * sink) before calling Map()
AffineMapping< InputStorageType, OutputStorageType > & operator=(const AffineMapping &src)
required because of const members