函数hommat2didentity
函数功能
生成一个初始矩阵[1,0,0,0,1,0]
C++形式
LIntExport void HomMat2dIdentity(
HTuple* HomMat2DIdentity);
//参数1:输出初始矩阵
C#形式
public static void HomMat2dIdentity(
out HTuple homMat2DIdentity);
函数HomMat2dRotate
函数功能
为一个同质二维矩阵增加一个旋转角度
C++形式
LIntExport void HomMat2dRotate(
const HTuple& HomMat2D,
const HTuple& Phi,
const HTuple& Px,
const HTuple& Py,
HTuple* HomMat2DRotate);
//参数1:输入二维仿射变换矩阵
//参数2:角度(弧度)
//参数3:旋转中心X(Row),注:X对应和Opencv是反的
//参数4:旋转中心Y(Column)
//参数5:输出增加角度后的二维仿射变换矩阵
C#形式
public static void HomMat2dRotate(
HTuple homMat2D,
HTuple phi,
HTuple px,
HTuple py,
out HTuple homMat2DRotate)
函数HomMat2dTranslate
函数功能
为一个同质二维矩阵增加一个平移
C++形式
LIntExport void HomMat2dTranslate(
const HTuple& HomMat2D,
const HTuple& Tx,
const HTuple& Ty,
HTuple* HomMat2DTranslate);
//参数1:输入二维仿射变换矩阵
//参数2:沿X(Row)方向平移,注:X对应和Opencv是反的
//参数3:沿Y(Column)方向平移
//参数4:输出增加角度后的二维仿射变换矩阵
C#形式
public static void HomMat2dTranslate(
HTuple homMat2D,
HTuple tx,
HTuple ty,
out HTuple homMat2DTranslate)
函数HomMat2dScale
函数功能
为一个同质二维矩阵增加一个缩放
C++形式
LIntExport void HomMat2dScale(
const HTuple& HomMat2D,
const HTuple& Sx,
const HTuple& Sy,
const HTuple& Px,
const HTuple& Py,
HTuple* HomMat2DScale);
//参数1:输入二维仿射变换矩阵
//参数2:沿X(Row)方向缩放比例,此参数!=0,注:X对应和Opencv是反的
//参数3:沿Y(Column)方向缩放比例
//参数4:输入比例的定位点X(Row)
//参数5:输入比例的定位点Y(Column)
//参数6:输出增加缩放后的二维仿射变换矩阵
C#形式
public static void HomMat2dTranslate(
HTuple homMat2D,
HTuple tx,
HTuple ty,
out HTuple homMat2DTranslate)