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.
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).