I used the 5 point Method from Nister to calculate the Essential matrix . Further improved Outlier Rejection using RANSAC and Sampson Error Threshold. I randomly choose 5 point sets, estimate the essential matrix and evaluate the Sampson error for the vector of matches. Point coordinates whose Sampson error is below a threshold t
(set to 0.01
in the example that I'm using), are set as inliers. The process is repeated for all essential matrices and we retain the one which posess the best score of inliers.
I have noticed that the majority of values of d
, the vector of sampson errors are too big: for example if the size of d
is (1x1437), if I do
g=find(abs(d)>0.01);
length(g)
then length(g)=1425
which means that only 7 values are inliers with this threshold which is not correct!
How to set the threshold? how to interprete Sampson error values?
Help me please. Thank you