2017-08-04 14:30:54 -0500 | commented question | findHomography + perspectiveTransform --> exceeds target Rect I wish that all the blue points (SRC) will reside inside the yellow rectangle. Is there a way to obtain that? Desirably, they should get arranged in 3 parallel rows. |

2017-08-04 07:59:15 -0500 | asked a question | findHomography + perspectiveTransform --> exceeds target Rect Hi all, I develop with python, with numpy and openCV (3.1.0). I have a SRC array of 2D points, which I wish to warp into a rectangle region. I've calculated the required homography (H) as following: Where: I got the following homography matrix (which I've verifying manually it makes sense..): I've then warped the SRC points with the above homography matrix, hoping all SRC points will utilize the rect_dst region: I got the following DST points: Unfortunately, the DST points exceed the rect_dst region, so I didn't get the desired outcome... Attached you may find a debug image, where SRC points are in blue and DST points are in yellow (please ignore the red and the green points). Can you please advise me where did I go wrong and how to obtain the desired feature? Thanks ahead, Shahar |

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.