How to obtain the height value of each pixel in a depth image?

I am preparing an application for surface flatness measurement, and I would like to know how to obtain the z-value (height information) of each pixel in a depth image.

Hello.

Mech-Vision does not have a specific step to achieve this functionality at the moment.
However, we can indirectly achieve this by embedding a Python script.
For information on how to use Python scripts in Vision, please refer to the following link.

https://docs.mech-mind.net/en/suite-software-manual/1.7.4/vision-steps/calc-results-by-python.html#_python_example_programs

It should be noted that the depth image is saved in the default format of 8UC4 (8-bit unsigned integer, 4 channels).
If you want to obtain the height information, you will need to interpret it in the format of 32FC1 (32-bit floating-point number, 1 channel).