Whether inspecting semiconductor wafers, measuring optical components, or imaging biological samples, the quality of the data depends on maintaining perfect focus. Modern microscopes and surface metrology systems often work at high magnifications where the depth of focus can be only a few micrometers –or even less. A slight change in sample height, surface topography, thermal drift, or vibration can quickly move the area of interest out of focus, degrading image quality and measurement accuracy.