陆[6],二维仿射变换,函数hommat2didentity/HomMat2dRotate/HomMat2dScale/HomMat2dTranslate/HomMat2dScale

函数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)

  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值