what is the best way to visualize the depth map in MATLAB to find the depth of an object in millimeters? I am using the formula in How Field of view changes depth estimation in stereo vision? to calculate depth from disparity. now I want to measure the depth of an object in the depth map. all units are in mm. my disparity map is 786*1126 single. my depth map is the same size. I am plotting them using imagesc in MATLAB. but that does not give me any idea on the depth of an object. any help is appreciated.
You can convert the depth map into a set of 3D points, and then use plot3()
or scatter3()
to plot the points in 3D. If you want to assign the colors from the image to the points, that will take additional work. Take a look at this example.