2020-10-21 09:46:22 -0600 | received badge | ● Nice Answer (source) |
2020-10-21 09:44:33 -0600 | received badge | ● Nice Question (source) |
2018-09-20 12:22:24 -0600 | marked best answer | Triangulation gives weird results for rotation OpenCV version 3.4.2 I am taking a stereo pair and using recoverPose to get the [R|t] pose of the camera, If I start at the origin and use triangulatePoints the result looks somewhat like expected although I would have expected the z points to be positive; These are the poses of the cameras [R|t] I get these results where the red dot and the yellow line indicates the camera pose (x positive is right, y positive is down): When I rotate the first camera by 58.31 degrees and then use recoverPose to get the relative pose of the second camera the results are wrong. Pose matrices where P0 is rotated by 58.31 degrees around the y axis before calling my code below. (x positive is right, y positive is down) The pose of the second frame is calculated as follows: I then call triangulatePoints using the K * P0 and K * P1 on the corresponding points. I feel like this is some kind of coordinate system issue as the points I would expect to have positive z values have a -z value in the plots and so the rotation is behaving strangely. I haven't been able to figure out what I need to do to fix it. EDIT: Here is a gif of what's going on as I rotate through 360 degrees around Y. The cameras are still parallel. What am I missing, shouldn't the shape of the point cloud remain the same if both camera poses remain in relative positions even thought they have been rotated around the origin? Why are the points squashed into the X axis? |
2018-09-20 12:22:11 -0600 | edited answer | Triangulation gives weird results for rotation Solved it - This function convert the aggregated pose into a projection matrix that makes sense. inline cv::Mat getProj |
2018-09-20 04:59:34 -0600 | received badge | ● Teacher (source) |
2018-09-20 01:16:25 -0600 | received badge | ● Self-Learner (source) |
2018-09-20 01:08:45 -0600 | edited answer | Triangulation gives weird results for rotation Solved it - This function convert the aggregated pose into a projection matrix that makes sense. inline cv::Mat getProj |
2018-09-20 01:07:45 -0600 | answered a question | Triangulation gives weird results for rotation See comments for answer. |
2018-09-19 17:56:57 -0600 | commented question | Triangulation gives weird results for rotation This only seems to be an issue when I rotate around the y and z axes. Rotation around the x axis looks ok. |
2018-09-19 16:38:51 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation OpenCV version 3.4.2 I am taking a stereo pair and using recoverPose to |
2018-09-19 11:46:24 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 21:11:41 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 21:06:49 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 20:31:49 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 20:30:50 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 19:34:21 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 18:43:42 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 15:35:59 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 15:35:33 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 15:08:06 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 15:02:55 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 15:01:29 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 15:00:14 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation I am taking a stereo pair and using recoverPose to get the [R|t] pose of |
2018-09-18 14:56:18 -0600 | edited question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation If I start at the origin and use triangulatePoints the result looks like |
2018-09-18 14:55:35 -0600 | asked a question | Triangulation gives weird results for rotation Triangulation gives weird results for rotation If I start at the origin and use triangulatePoints the result looks like |
2018-09-18 01:42:08 -0600 | received badge | ● Enthusiast |
2018-09-08 16:45:45 -0600 | edited answer | recoverPose and triangulatePoints - 3D results are incorrect Filtering made all the difference. Once I removed all the points marked by the mask from recoverPose, the negative z poi |
2018-09-08 16:44:32 -0600 | edited answer | recoverPose and triangulatePoints - 3D results are incorrect Filtering made all the difference. Once I removed all the points marked by the mask from recoverPose, the negative z poi |
2018-09-08 16:44:13 -0600 | edited answer | recoverPose and triangulatePoints - 3D results are incorrect Filtering made all the difference. Once I removed all the points marked by the mask from recoverPose, the negative z poi |
2018-09-08 16:42:56 -0600 | edited answer | recoverPose and triangulatePoints - 3D results are incorrect Filtering made all the difference. Once I removed all the points marked by the mask from recoverPose, removed the negati |
2018-09-08 16:42:33 -0600 | marked best answer | recoverPose and triangulatePoints - 3D results are incorrect Hello I am having some trouble with triangulatePoints and the resulting 3D points are coming out incorrectly. I am using Opencv 3.4.2 on ubuntu 16.04. This is the function that I use to triangulate from two vectors of cv::Poin2f containing matches (I have verified that these matches are correct and make sense between the images). The input are the features tracked between two frames and the P0 and P1 are generated from findEssentialMatrix and recoverPose between the two sets of points. I know that points0 and points1 are reversed for the first two functions and switching them doesn't make a difference. The tracked features are as follows: The resultant P mat for this example is as follows: The result looks like this where the plots at the bottom are the x and y and x and z coordinates of the result, centered on the red cross: Plotted with this loop: Any idea what the issue is, I have been struggling with this for a few days. |
2018-09-08 14:46:23 -0600 | received badge | ● Self-Learner (source) |
2018-09-07 18:18:09 -0600 | commented question | recoverPose and triangulatePoints - 3D results are incorrect Yeah I just figured it out right before seeing this. Filtering made all the difference. Once I removed all the points ma |
2018-09-07 18:17:48 -0600 | commented question | recoverPose and triangulatePoints - 3D results are incorrect Yeah I just figured it out right before seeing this. Filtering made all the difference. Once I removed all the points ma |
2018-09-07 18:16:40 -0600 | commented question | recoverPose and triangulatePoints - 3D results are incorrect Yeah I just figured it out right before seeing this. Filtering made all the difference. Once I removed all the points ma |
2018-09-07 18:16:19 -0600 | commented question | recoverPose and triangulatePoints - 3D results are incorrect Yeah I just figured it out right before seeing this. Filtering made all the difference. Once I removed all the points ma |
2018-09-07 17:08:09 -0600 | edited question | recoverPose and triangulatePoints - 3D results are incorrect recoverPose and triangulatePoints - 3D results are incorrect Hello I am having some trouble with triangulatePoints and t |
2018-09-07 16:31:06 -0600 | edited question | recoverPose and triangulatePoints - 3D results are incorrect recoverPose and triangulatePoints - 3D results are incorrect Hello I am having some trouble with triangulatePoints and t |
2018-09-07 16:29:19 -0600 | edited question | recoverPose and triangulatePoints - 3D results are incorrect recoverPose and triangulatePoints - 3D results are incorrect Hello I am having some trouble with triangulatePoints and t |
2018-09-07 16:24:17 -0600 | edited question | recoverPose and triangulatePoints - 3D results are incorrect recoverPose and triangulatePoints - 3D results are incorrect Hello I am having some trouble with triangulatePoints and t |
2018-09-07 15:30:37 -0600 | edited question | recoverPose and triangulatePoints - 3D results are incorrect recoverPose and triangulatePoints - 3D results are incorrect Hello I am having some trouble with triangulatePoints and t |