Hi, guys!
I'm want to use fcvTransformAffineClippedu8, but have unexpected results. Which transformation formula does it used? I'm think, if rotate image on angle psi (clockwise order) and shift on (100 - right, 100 - down), the formula should be: a11*x+a12*y+a13 = xNew, correspondingly for y (where a11 = cos(psi) and a12 = -sin(psi), a13 = 100).
It should be calculated like this: xNew=a11*x+a21*y+a13.
Sorry for confusion.
Thanks!
It seems, that formila is a11*x+a12*y-a13 = xNew. Please, post the whole calculationg formula for this affine transformation.
Hi,
My earlier comment on the formula was incorrect. The real issue here is that the rotation convention assumes positive angle for clockwise rotation, and negative angle for counter-clockwise rotation.
If you negate the angle before calculating the transform matrix, you should get correct result.
Cheers,
-Jeff