Ask Your Question
0

RANSAC inliers

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

MMOSX gravatar image

With:

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
2

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

Comments

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 911 times

Last updated: Feb 05 '16