I am running solvePnPRansac, and after it runs, i need to get the inlier points from the input matrices. The inlier Mat seems to be a list of ints, rather than the 0 or 1 values that i would expect. What is the best way to run this:
cv::Mat points3D_t0; // Mat of 3d points
std::vector<Point2f> points_left_t1; // vector of 2d features
cv::solvePnPRansac(points3D_t0, points_left_t1, intrinsic_matrix, distCoeffs, rvec, tvec,
useExtrinsicGuess, iterationsCount, reprojectionError, confidence,
inliers, flags);
and then fill a std::vector<Point2f>
and a std::vector<Point3f>
with the matched inlier points that were used in the PnP solve?
Thank you.