We measure height or depth by focusing the system on features at different heights, for example a line or a point at the top and bottom of a step, and then simply construct a distance measurement between these features. If you are using an optical measuring system to measure in the Z-axis often, we recommend using a higher magnification objective with a small depth of field, so that you can focus more repeatably on the features measured.