1 | initial version |
Modifying the Mij
parameters to use the warpPerspective()
original method is possible, but the image must be resized, and the result need to be cropped, because it is translated with the half of the image's size. You can watch at the transformation I performed, which has a translation error. This is not an elegant way to proceed ...
Implementing my own warpPerspective()
method is also possible, but that would mean there's no way to use OpenCV. My question is about what I can write in C++ using the library. The issue is that OpenCV's warpPerspective()
method is not generic for perspective transformations.
I need a warping method that could be centered to a different point than the origin (cx,cy)=(0,0) of the image. The warpPerspective()
method was implemented for a very peculiar usage, with a peculiar homography form.
I need to use the general implementation of perspective transforms. That means 3 translations factors, 3 rotations angles and 2 shear angles, applied from the center (cx,cy) of the image ... Thanks for helping.
Best regards,
Dr. F. Le Coat CNRS / Paris / France