计算仿射变换矩阵
LIntExport void VectorToHomMat2d(
const HTuple& Px,
const HTuple& Py,
const HTuple& Qx,
const HTuple& Qy,
HTuple* HomMat2D);
//参数1:图像坐标X数组
//参数2:图像坐标Y数组
//参数3:世界坐标X数组
//参数4:世界坐标Y数组
//参数5:输出仿射变换矩阵
public static void VectorToHomMat2d(
HTuple px,
HTuple py,
HTuple qx,
HTuple qy,
out HTuple homMat2D);
矩阵在算子中不是正定的
输入数据有问题,详细参考正定矩阵定义。
二维仿射变换
LIntExport void AffineTransPoint2d(
const HTuple& HomMat2D,
const HTuple& Px,
const HTuple& Py,
HTuple* Qx,
HTuple* Qy);
//参数1:仿射变换矩阵
//参数2:图像坐标X
//参数3:图像坐标Y
//参数4:输出世界坐标X
//参数5:输出世界坐标Y
public static void AffineTransPoint2d(
HTuple homMat2D,
HTuple px,
HTuple py,
out HTuple qx,
out HTuple qy)
二维仿射变换,常用于九点标定。