How do I find 3D coordinates from stereo picture pair?
25 views (last 30 days)
I am trying to measure the distance between two points (e.g. length of pen by using each end as a point) in a 3 dimensional space.
- taken stereo images
- calibrated the cameras
- rectified the images
- created a disparity map
- generated a point cloud
Now, I need to get the 3D coordinates for both of the points, to then calculate the distance between the two points. How do I get the 3D coordinates for a point? Moreover, how would I be able to choose the point in the first place? Is there an option to just choose a point straight from an image and MATLAB then gives you the coordinates? Or is there even some sort of code which let's me chose two points and then automatically calculates the distance between the two points?