Ask Your Question
0

RANSAC parameters

asked 2013-02-03 06:26:45 -0600

Bomber19 gravatar image

updated 2013-02-04 01:02:48 -0600

Hey, i'm using the RANSAC-Algorithm for estimating homography. The only parameter i can edit is the reprojection error threshold t. What are the values of the other parameters in OpenCV?

  • N --> number of trials
  • T --> threshold for the number of inliers
  • p --> probability that one of the random sample is free from outliers
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-04 02:06:30 -0600

sammy gravatar image

These parameters are hardcoded. You can find them in modules/calib3d/src/fundam.cpp, line 222.

I won't discuss why they are hardcoded - just that for 99% of situations the defaults are best.

If you want more control over your homography, use cv::findFundamentalMat() - you can specify the algorithm and its parameters in great detail.

And if you still don't like it, fork OpenCV and tune it yo your needs.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-02-03 06:26:45 -0600

Seen: 2,672 times

Last updated: Feb 04 '13