Tracking autofocus continuously adjusts to changes in workpiece height, enabling a video measuring system to retain focus while measuring multiple-height features [S1].
Modern vision measuring machines combine CCD imaging, digital edge processing, and Z-axis autofocus for non-contact size, contour, and height inspection across 2D and 2.5D workflows [S5][S7].
How autofocus produces Z-height data
Autofocus measures height by moving the lens along Z while evaluating image contrast, with the peak-contrast position treated as the focus plane [S5]. In a multi-height part, this focus position changes from feature to feature, so the system can build a surface-height map without physical contact [S5][S7].
Tracking autofocus goes further by following surface changes continuously rather than relying on a single fixed focus condition [S1]. The technique is therefore suited to tall surfaces, recesses, protrusions, surface waves, and warpage, all of which can move the actual surface away from the nominal working plane [S1].
Auto-focus can determine the Z position of each detected feature, including step heights, counterbore depth, recess depth, and feature Z-position [S7]. A 2D edge dimension and its associated height can therefore be captured within the same optical measurement sequence.
Where multi-height autofocus is needed
QM-Fit is designed to keep uneven parts in focus, including parts with heights up to 36 mm, deep depressions, and protrusions [S8]. That range makes it materially different from a flat-part inspection setup where the entire surface remains close to one focal plane.
Typical applications include machined parts with profiles, hole locations, radii, chamfers, and feature-to-feature distances [S4]. Stamped and laser-cut parts also benefit where outlines and patterns are inspected across varied material surfaces [S4].
Vision is particularly useful for plastic, molded, electronic, and precision components because it avoids applying contact force to soft or delicate parts [S2][S4]. Automatic focusing also reduces manual focus adjustment when multiple inspectors use the same station [S4].
Comparison of autofocus and inspection architectures

Tracking autofocus, fixed-focus vision, and semi-automatic Z positioning should be selected by height variation, operator burden, and required measurement scope. A vision measuring machine with tracking autofocus handles changing surface heights continuously, while fixed-focus operation is simpler but depends on the part remaining close to a stable focal plane [S1].
A semi-automatic machine combines an automatically focused Z axis with operator-controlled workflow, reducing focus variation while retaining a practical balance between automation and setup flexibility [S4]. By comparison, a contact coordinate measuring machine is better suited to deep bores and solid geometry, while video metrology is stronger for planar contours, thin parts, and edges that are difficult to probe physically [S5].
Accuracy depends on focus and image contrast
A blurred edge produces lower contrast and greater measurement error, while a sharp edge supports more accurate edge localization [S5]. Actual size is calculated from pixel count multiplied by calibrated pixel size, for example 300 pixels at 10 µm per pixel corresponds to 3 mm [S5].
Sub-pixel edge detection improves on whole-pixel localization by fitting an interpolation curve to the grayscale transition, allowing the edge to be located below one pixel [S5]. This does not replace optical calibration, because lighting, magnification, pixel size, and calibration state all influence the final dimensional result [S5].
For edge-performance decisions, the relationship between grayscale processing and dimensional uncertainty is explained in Subpixel Edge Detection Accuracy for Vision Measurement. LED illumination also changes edge contrast materially, so illumination selection belongs in the optical metrology plan rather than being treated as a secondary accessory choice.
Measurement capacity, travel, and performance limits

Mitutoyo’s Quick Scope Series 359 is a manual vision measuring system with surface, contour, and fiber-optic ring-light illumination options [S1].
Those specifications should not be transferred to an arbitrary vision system. Measurement travel, optical magnification, camera resolution, stage load, working distance, and Z accuracy determine whether multi-height autofocus can be used without compromising the required tolerance [S1]. The QualiVMM Semi 300 Series is built for the 300 × 200 mm travel class and supports 2D and 2.5D vision measurement [S4].
Auto-focus should not be treated as a substitute for geometric verification. The vision measuring system guide covers ISO 10360-7 in connection with methods intended to improve accuracy and quality control [S5].
Lighting, geometry, and workflow constraints
Multi-height autofocus can still fail when the surface does not produce a usable optical edge. Reflective metal, transparent plastic, low-contrast boundaries, severe surface texture, deep recesses, and abrupt sidewalls can reduce the information available to image processing [S2][S4][S5].
Contour, surface, and programmable ring-light illumination are used to improve edge visibility, and programmable ring illumination can vary obliquity for inclined surfaces [S2]. The contour measuring machine designation applies to a related projection-based inspection approach, but the height behavior discussed here depends on the actual optical configuration and autofocus method of the selected instrument.
Large parts that exceed the camera field of view require image stitching, in which the camera and stage capture multiple sections and construct a complete model [S5]. At that point, stage positioning, calibration, illumination consistency, and feature-to-feature registration become more important than autofocus alone.
Semi-automated autofocus systems are used for quality control in automobile, aerospace, electronics, and medical manufacturing [S3]. The correct architecture depends less on industry label than on part geometry, edge visibility, required throughput, and whether contact or 3D measurement must be added to the optical workflow [S3][S4].
For a procurement or process-engineering trial, require a representative part containing the tallest feature, deepest recess, thinnest wall, and most reflective surface, then verify focus recovery, Z repeatability, edge contrast, and measurement uncertainty under production lighting.