Change method of homography calculation

asked 2017-05-16 07:00:58 -0600

h4bUb gravatar image

updated 2017-05-16 07:16:09 -0600

berak gravatar image

Is it possible to make changes in RANSAC method that used in function findHomography? I am using python 2.7, opencv 2.4.13 as cv2.pyd file and i don't see a way to change source files. Or even better do somethig like this: findHomography(srcPoints, dstPoints, MYOWNMETHOD)

If this can be done on c++ i'll be glad to see possible solutions.

edit retag flag offensive close merge delete

Comments

if you look at the docs , there's more than RANSAC.

c++ src is here , but chances to hook your own algo into this seem very low.

berak gravatar imageberak ( 2017-05-16 07:32:15 -0600 )edit

Ye i know that there is more algorithms, i just want to change 1st step in RANSAC where it randomly chooses 4 numbers, but i can't find the actual RANSAC code.

h4bUb gravatar imageh4bUb ( 2017-05-16 07:39:10 -0600 )edit

well, here's the RANSAC (... good luck with it...)

berak gravatar imageberak ( 2017-05-16 07:45:51 -0600 )edit