OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Mon, 28 Aug 2017 09:08:26 -0500Apply quadratic function to an imagehttp://answers.opencv.org/question/173072/apply-quadratic-function-to-an-image/ Hello.
I have a quadratic function I would like to apply to my image.
The transformation has the following form:
* x' = A + Bx + Cy + Dxx + Exy + Fyy
* y' = G + Hx + Iy + Jxx + Kxy + Lyy
For a linear transformation:
* x' = A + B*x + C*y
* y' = D + E*x + F*y
it was easy because I could use WarpAffine by putting the coefficients in a 3x2 matrix.
Moreother, is it easy to get the value of rotation angle and scale ?
Again, with the linear transformation, rotation angle is easily computed with atan2(B, C). Scale is (sqrt(B*B + C*C) and shifts are A and D.
lock042Mon, 28 Aug 2017 09:08:26 -0500http://answers.opencv.org/question/173072/