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:

  1. getaffinetransform()
  2. getperspectivetransform()
  3. 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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -