内置功能可在OpenCV中组合仿射变换吗? [英] Built in function to combine affine transforms in OpenCV?

查看:110
本文介绍了内置功能可在OpenCV中组合仿射变换吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Opencv中是否有结合仿射变换的内置函数?
我也可以自己编写,但是在可能的情况下我会坚持使用库函数.

Is there any built-in function in Opencv which combines affine transforms?
I can write it by myself too, but I'd stick to using library functions when possible.

干杯.

推荐答案

现在我这样做:

  • 我分配了a1,a2,r个矩阵,所有3x3眼,
  • 我用转换矩阵a1aff,a2aff替换了前两个的顶部.
  • r = a2 * a1
  • 返回r的前两行.
  • I allocate a1, a2, r matrices, all 3x3 eyes,
  • I replace the top part of the first two with the transformation matrices a1aff, a2aff.
  • r = a2*a1
  • return the first two rows of r.

此解决方案将立即执行.

This solution will do for now.

这篇关于内置功能可在OpenCV中组合仿射变换吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆