I am trying to transform quadrilateral to rectangular plane And need to extract coordinate of 1 specific point (in quadrilateral plane), to that in respect to rectangular plane..
I'm using EmguCV for image processing purpose in my .NET project
What I've tried is:
1) Calculate Homography matrix between quadrilateral and rectangular plane (specifying points in clockwise order from left top corner for both planes)
2) Multiply above Homography matrix by 3 x 1 matrix [x,y,1] to get final coordinates.
However, the resultant coordinate (x', y') does not seem in concordance with given point (x,y).
As Micka suggested, after having resultant matrix (3x1), all that is needed to solve this problem was this: p' = (x'/z', y'/z')
Steps as below:
Now, Dehomogenize above [x',y',z']T i.e. [(x'/z'), (y'/z'), 1]T
thus, the required final coordinate of rectangular plane.