16#include <NANA\core.hpp>
20namespace ComputerGeometry {
42 NAFLOAT* pdata = M.m_data;
43 dst.x = pdata[0] * src.x + pdata[1] * src.y + pdata[2];
45 dst.y = pdata[0] * src.x + pdata[1] * src.y + pdata[2];
67 NAFLOAT* pdata = M.m_data;
69 dst.x = pdata[0] * src.x + pdata[1] * src.y + pdata[2];
71 dst.y = pdata[0] * src.x + pdata[1] * src.y + pdata[2];
73 NAFLOAT w = pdata[0] * src.x + pdata[1] * src.y + pdata[2];
#define NA_Assert(expr)
当表达式非法,抛出异常
void warpPerspectivePoint2D(const Matrix &M, const PointXY_< _Tp > &src, PointXY_< _Tp > &dst)
实现点集的透视变换矩阵 透视变换矩阵大小:
void warpAffinePoint(const Matrix &M, const PointXY_< _Tp > &src, PointXY_< _Tp > &dst)
对当前点集进行放射变换