Ask Your Question
2

Finding fundamental matrix using RANSAC and 15 points

asked 2014-06-10 16:40:55 -0600

I want to find fundamental matrix using RANSAC having 10 points and find a bug(?) or discrepancy between documentation and source code. https://github.com/Itseez/opencv/blob/master/modules/calib3d/src/fundam.cpp#L710 this code says that I must have 15 points to use RANSAC (otherwise it use LMEDS even if I chose RANSAC), but http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#Mat%20findFundamentalMat%28InputArray%20points1,%20InputArray%20points2,%20int%20method,%20double%20param1,%20double%20param2,%20OutputArray%20mask%29 says that RANSAC work with >= 8 points (seems obvious to me). Can someone explain to me "why 15"? I spent a lot of time to finding a mistake in my program.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-13 18:35:49 -0600

updated 2014-06-13 18:50:13 -0600

I find an explanation. http://code.opencv.org/issues/2394#note-3 Sadly documentation has not changed from those days. In my opinion this feature should be documented, because LMEDS marks exactly 7 points as inliers, and when you expect to use RANSAC it looks really strange when you pass 14 very good points and function return 7 outliers.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-10 16:40:55 -0600

Seen: 792 times

Last updated: Jun 13 '14