NANA
|
函数 | |
template<typename _Tp > | |
void | NANA::ComputerGeometry::warpAffinePoint (const Matrix &M, const PointXY_< _Tp > &src, PointXY_< _Tp > &dst) |
对当前点集进行放射变换 更多... | |
template<typename _Tp > | |
void | NANA::ComputerGeometry::warpPerspectivePoint2D (const Matrix &M, const PointXY_< _Tp > &src, PointXY_< _Tp > &dst) |
实现点集的透视变换矩阵 透视变换矩阵大小: \(3 \times 3\) 更多... | |
void NANA::ComputerGeometry::warpAffinePoint | ( | const Matrix & | M, |
const PointXY_< _Tp > & | src, | ||
PointXY_< _Tp > & | dst | ||
) |
对当前点集进行放射变换
仿射变换矩阵大小: \(2 \times 3\)
\[\begin{bmatrix} x'_i \\ y'_i\\1 \end{bmatrix} = \texttt{map_matrix} \cdot \begin{bmatrix} x_i \\ y_i \\ 1 \end{bmatrix}\]
where
\[dst(i)=(x'_i,y'_i), src(i)=(x_i, y_i), i=0,1,2\]
[in] | const | PointXY_<_Tp> & src 原点 |
[out] | PointXY_<_Tp> | & dst 目标点 |