Ask Your Question
0

how to calculate the inliers points from my rotation and translation matrix?

asked 2017-04-07 16:35:39 -0600

Mohammed Omar gravatar image

how to calculate the inliers points from my rotation and translation matrix? if I have the points lists std::vector<point3d> opoints; std::vector<point2d> ipoints; and I have the rotation and translation matrix, How can I calculate the inliers points

I know that cv::solvePnPRansac will calculate the inliers, rotation and translation from the two points list, but I need to calculate the inliers from my rotation and translation?

Thanks for your support

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-07 23:22:30 -0600

Tetragramm gravatar image

You can't know absolutely, but you can set an error threshold. Then any points that have less than that error are inliers.

Use projectPoints on the 3d to get a set of 2d points. Then calculate the error of the projected points from the "true" points as sqrt(diffx^2 + diffy^2).

edit flag offensive delete link more

Comments

thanks for you, can you give me suggestion how to get get the 2d point from the 3d points?

Mohammed Omar gravatar imageMohammed Omar ( 2017-04-08 01:46:34 -0600 )edit

projectPoints is the name of the function.

Tetragramm gravatar imageTetragramm ( 2017-04-08 16:35:56 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-07 16:35:39 -0600

Seen: 670 times

Last updated: Apr 07 '17