I was going through this question for the explanation of affine transform for a quadrilateral (in the link).
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.
http://stackoverflow.com/questions/10667834/trying-to-understand-the-affine-transform