15 #ifndef __IPSDKMATH_AFFINE2D_H__ 16 #define __IPSDKMATH_AFFINE2D_H__ 20 #pragma warning (push) 21 #pragma warning (disable : 4251) 23 #include <IPSDKMath/Geometry/2d/Transform/BaseLinearGeometricTransform2d.h> 54 _axx(1), _axy(0), _ayx(0), _ayy(1), _tx(0), _ty(0)
60 _axx(axx), _axy(axy), _ayx(ayx), _ayy(ayy), _tx(tx), _ty(ty)
74 const ipReal64 xTmp = axx*x + axy*y + tx;
75 const ipReal64 yTmp = ayx*x + ayy*y + ty;
86 transform(0, 0) = axx; transform(0, 1) = axy; transform(0, 2) = tx;
87 transform(1, 0) = ayx; transform(1, 1) = ayy; transform(1, 2) = ty;
88 transform(2, 0) = 0; transform(2, 1) = 0; transform(2, 2) = 1;
107 getInvParams(invAxx, invAxy, invAyx, invAyy, invTx, invTy);
109 return getHomogenousMatrix(invAxx, invAxy, invAyx, invAyy, invTx, invTy);
120 static Vector getIdentityParams();
138 void setParams(
const Vector& params);
147 Matrix3d getHomogenousMatrix()
const;
153 Matrix3d getInvHomogenousMatrix()
const;
156 Vector getInvParams()
const;
191 #pragma warning (pop) 193 #endif // __IPSDKMATH_AFFINE2D_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eTransformParams
Definition: Affine2d.h:39
void setParams(const ipReal64 axx, const ipReal64 axy, const ipReal64 ayx, const ipReal64 ayy, const ipReal64 tx, const ipReal64 ty)
select parameters associated to transformation
Definition: Affine2d.h:131
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
IPSDKGEOMETRY_API bool apply(const BaseGeometryTransform2d &transform, BaseGeometryEntity2d &entity)
function allowing to apply in situ a given transformation on an entity
boost::numeric::ublas::vector< ipReal64 > Vector
vector type associated to library
Definition: LinearAlgebraTypes.h:36
static Vector getIdentityParams()
retrieve identity parameters for transformation
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
Transformation class allowing to manage 2d affine transformations.
Definition: Affine2d.h:32
boost::numeric::ublas::bounded_matrix< ipReal64, 3, 3 > Matrix3d
3d matrix (3x3) type associated to library
Definition: LinearAlgebraTypes.h:54
void setIdentity()
set transformation parameters to identity
Definition: Affine2d.h:187
Base class for linear geometric transformation 2d management.
Definition: BaseLinearGeometricTransform2d.h:27
#define IPSDK_ENUM(enumTypeStr, enumSeq)
macro allowing to declare an enumerate for library
Definition: EnumMacros.h:26
#define IPSDK_DECLARE_TRANSFORM2D(className)
macro allowing to declare a geometric transformation 2d
Definition: Transform2dHdrMacros.h:55