* Coefficients are calculated by solving linear system: * which maps soruce (xi,yi) to destination (ui,vi), (i=1,2,3,4): * Calculates coefficients of perspective transformation So far I have this and it works: import numpy as npĭef getPerspectiveTransform(sourcePoints, destinationPoints):Ĭalculates the 3x3 matrix to transform the four source points to the four destination points Everything I've found is either about using cv2.perspectiveTransform or how to implement cv2.getPerspectiveTransform. I've already got getPerspectiveTransform implemented but I'm having trouble finding a source for the math required for perspectiveTransform. I'd like to be able to do this without requiring OpenCV. I'm mapping 2d points from a source rectangle to a destination rectangle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |