Ask Your Question

RANSAC inliers

asked 2016-02-05 11:59:39 -0500

MMOSX gravatar image


Mat H = Calib3d.findHomography(oggetto,scena,Calib3d.RANSAC,50,inliers,25,0.90);

I have the inliers, but the matrix is a series of 0 and 1. I need to say if in the inliers.get(i,j) i and j indicate the index of point used to obtain the homography?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-05 13:07:47 -0500

Eduardo gravatar image

In C++, inliers returned by findHomography will be a vector where each index in the vector corresponds to the correspond srcPoints and dstPoints.

So, if inliers[0] == 0, it means that dstPoints[0] is an outlier.

It should be the same for findHomography in Java.

edit flag offensive delete link more


In java is the same?

MMOSX gravatar imageMMOSX ( 2016-02-05 13:09:15 -0500 )edit

For me inliers is a matrix, in inliers.get(0,0) = 0 what does is means?

MMOSX gravatar imageMMOSX ( 2016-02-05 13:15:59 -0500 )edit

It is a matrix with the number of columns equals to one and the number or rows equals to the number of elements in srcPoints and dstPoints.

Eduardo gravatar imageEduardo ( 2016-02-06 15:13:48 -0500 )edit

Question Tools

1 follower


Asked: 2016-02-05 11:59:39 -0500

Seen: 1,292 times

Last updated: Feb 05 '16