REQUIRE HELP WITH saved Depth Map (Jet and Gray Scale)

How can I save the depth map as displayed in Mech Eye viewer??

MAIN PROBLEM:

  • Currently, when I save the depth map from Mech Eye in .tiff or .png format, the image is not the same as Mech Eye viewer. In MechEye, different shading/color can be seen depending on different depth levels.

CURRENT SITUATION:

WHAT I WANT TO GET:

  1. I want the jet depth map saved in .tiff or .png to appear like this (with different color scale to represent different depth):

  2. I want the gray depth map saved in.tiff or .png to appear like this (with different gray scale to represent different depth):

Hello, the depth maps displayed when you choose the Jet mode and grayscale mode in MechEye Viewer software are the rendered results within the MechEye Viewer software. The depth maps saved in MechEye Viewer software are not color-rendered; you need to manually render them in the desired colors based on the depth values.

@shuai. Does this mean that for example depth map saved as .tiff from MechEye will need to be processed in another program to generate the color range based on depth value? If I’m not mistaken the original saved depth file from MechEye will contain depth value at each (x, y) coordinate.

  1. You can obtain the depth map through the MechEye API, and then add your rendering program. A sample routine for obtaining the depth map can be found at: https://github.com/MechMindRobotics/mecheye_cpp_samples/tree/master/source/Basic/CaptureDepthMap.

  2. Yes, the depth map stores the depth values for each pixel. For information about the depth map format, please refer to: https://community.mech-mind.com/t/image-data-format-in-mech-eye-api/810.