python - What's the difference between getAffineTransform(), getPerspectiveTransform() and findHomography() -
i'm investigating ways of transforming image , overlaying within contour of image.
as best can tell there 3 ways opencv in python:
getaffinetransform()
getperspectivetransform()
findhomography()
i found 3 different methods via blog , posts , produce same results, i.e. taking source image , warping/overlaying on contour of different shape on destination image.
this demonstrates getaffinetransform()
https://stackoverflow.com/a/38323528/1887261
this demonstrates getperspectivetransform()
http://uberhip.com/python/image-processing/opencv/2014/10/26/warping-brien/
this demonstrates findhomography()
http://www.learnopencv.com/homography-examples-using-opencv-python-c/#download
i'm wondering best method use , why use 1 on other?
Comments
Post a Comment