I was going through this question for the explanation of affine transform for a quadrilateral - trying to understand the Affine Transform
However, I want to perform affine transform for perspective correction of a n-sided polygon, for any n (obviously > 3). Can anyone please explain me how to do it or suggest a OpenCV [or something similar] implementation so that I can implement it?
Thanks in advance.