I am using the function findHomography
of OpenCV with the RANSAC method in order to find the homography that relates two images linked with a set of keypoints.
The main issue is that I haven't been able to find anywhere yet what are the values of the mask matrix that the function outputs.
The only information that I know is that 0 values are outliers, and non zero values are inliers. But what does it mean the inliers value? Does anyone know?
Piece of code where I call findHomography
:
cv::Mat H12;
cv::Mat mask;
H12 = cv::findHomography(FvPointsIm1, FvPointsIm2, mask, CV_RANSAC, 5);
ui->Debug_Label->setText(Mat2QString(mask));
0
or1
? – UnitedfindHomography
and then examine the mask values? It would be nice to know the type of your mask input. – United