26 #ifndef DIGIKAM_POINT_TRANSFORM_AFFINE_H
27 #define DIGIKAM_POINT_TRANSFORM_AFFINE_H
48 const std::vector<float>& b_);
51 const std::vector<float>
operator() (
const std::vector<float>& p)
const;
53 const std::vector<std::vector<float> >&
get_m()
const;
54 const std::vector<float>&
get_b()
const;
58 std::vector<std::vector<float> > m;
75 const std::vector<std::vector<T> >& toPoints)
77 std::vector<std::vector<float> > P(3, std::vector<float>(fromPoints.size()));
78 std::vector<std::vector<float> > Q(2, std::vector<float>(fromPoints.size()));
80 for (
unsigned long i = 0 ; i < fromPoints.size() ; ++i)
82 P[0][i] = fromPoints[i][0];
83 P[1][i] = fromPoints[i][1];
86 Q[0][i] = toPoints[i][0];
87 Q[1][i] = toPoints[i][1];
98 const std::vector<std::vector<float> >& toPoints);
std::vector< std::vector< float > > pinv(const std::vector< std::vector< float > > &mat)
Definition: matrixoperations.cpp:58
Definition: datefolderview.cpp:43
PointTransformAffine inv(const PointTransformAffine &trans)
Definition: pointtransformaffine.cpp:95
PointTransformAffine operator*(const PointTransformAffine &lhs, const PointTransformAffine &rhs)
Definition: pointtransformaffine.cpp:86
PointTransformAffine findSimilarityTransform(const std::vector< std::vector< float > > &fromPoints, const std::vector< std::vector< float > > &toPoints)
Definition: pointtransformaffine.cpp:104
PointTransformAffine findAffineTransform(const std::vector< std::vector< T > > &fromPoints, const std::vector< std::vector< T > > &toPoints)
Definition: pointtransformaffine.h:74