Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Built in function to combine affine transforms in OpenCV?

Tags:

c++

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.

Cheers.

like image 921
Barney Szabolcs Avatar asked Nov 12 '22 16:11

Barney Szabolcs


1 Answers

Right now I do this:

  • 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.

like image 65
Barney Szabolcs Avatar answered Nov 15 '22 05:11

Barney Szabolcs