Ask Your Question

Which parameters findHomography you found to give better results?

asked 2012-06-26 06:38:23 -0500

Rui Marques gravatar image

updated 2012-07-08 17:27:27 -0500

Which parameters (method and ransacReprojectionThreshold) from findHomography function you found to give better results in terms of a balance between accuracy and performance, and what is the reasoning?


I use RANSAC with ransacReprojectionThreshold = 4. But I am not sure if i can do better than this.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-06-27 09:03:18 -0500

Vincent Rabaud gravatar image

method of 0 assumes no outliers. The RANSAC one requires you to give a distance and this one has to be chosen with respect to your noise model/dataset: try with a few pixels (e.g. 2) and keep increasing if you are dis-satisfied by the results.

The Least-Median method uses the median of your valid points and does not assume a distance but it assumes that at least 50% of your points are valid.

edit flag offensive delete link more


Thanks for your answer, it is certainly helpful but I updated the question to mention a "balance between accuracy and performance", which is more accurate to what I had in mind.

Rui Marques gravatar imageRui Marques ( 2012-06-27 10:24:13 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2012-06-26 06:38:23 -0500

Seen: 731 times

Last updated: Jul 08 '12