Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Sharp images, wrong measurements: check depth of field, magnification and distortion | Crystal & Oscillator Handbook

In a machine-vision measurement, a sharp image can still give a different width when the part moves in depth. A conventional lens generally makes a closer object appear larger. Software using the original calibration plane then interprets the change in scale as a change in dimensions. A steady 24 MHz camera reference does not change the optics. Specify allowable magnification variation across object heights as well as resolution, depth of field and frame rate.

The examples use synthetic measurements and existing images of stationary parts. They do not involve line operation, motion-platform changes or automatic rejection. The modeled error is not a lens specification or recommendation for a particular device.

Sharpness, magnification and distortion need separate evidence

Depth of field describes the object distances that satisfy an image-sharpness criterion. Magnification determines how much sensor or image distance corresponds to a millimeter on the part. An edge may remain sharp while moving more or fewer pixels from its counterpart as the object moves along the optical axis.

Object-side telecentric optics can reduce this change over a specified field and working range. They do not promise focus at every distance or eliminate distortion, chromatic aberration, temperature drift or edge-location error. Establish whether the design is object-side, image-side or doubly telecentric. Workpiece-height differences concern the object side. Sensor placement and architecture are separate.

Distortion can change measured width as a reference moves from center to corner in one plane. Depth effects are checked while holding the image location comparable. If both positions change at once, keep originals and controlled position records to separate the causes.

Three pixels can appear as 0.3 mm of dimensional error

A stationary 20 mm reference reads 200 pixels wide at the calibration plane and the same field region. This gives 0.1 mm per pixel. In a closer plane the edges remain clear and span 203 pixels. The old scale reports 20.3 mm and creates an apparent +0.3 mm difference although the part is still 20 mm.

Conversely, a real 20.3 mm part in a more distant plane might span only 200 pixels and read 20 mm. Such an error can cause a false reject or false pass. The 203-pixel value is assumed and not derived from a working distance. Verify actual optics rather than adopting 0.3 mm as a limit.

A stepped object can also have edges in different planes. The top of a housing and the bottom of a clip may be at different heights. State which plane sets the scale and which feature the application measures, rather than treating a sharper image as a correction.

Compare depth, field position and timing independently

Use the same known reference across marked object planes with the same image region and edge-detection method. Check raw images for height, optical magnification and software resizing. Without those controls, differences between pictures do not establish a perspective effect. If the sample changed, confirm dimensional equivalence first.

At one plane, compare center and edge to assess field-position effects. Subpixel processing, lighting direction, shadows and thresholds can also shift detected edges. Note differences in brightness, crops, image scaling and units before comparing measured widths.

For static samples with reproducible height-dependent error, check scale first. Errors confined to motion can involve exposure, trigger sync or line timing beyond this model. Record camera clock, synchronization and optical acceptance separately, along with dropouts, shape changes and scaling.

Specify the measurement planes when quoting optics and clocks

Give suppliers sensor image size, field of view, working distance and part-height range. For a telecentric candidate, request the object-side range, guaranteed magnification variation, field distortion and spatial resolution. Define tolerable dimensional error, sample planes and data format. If evaluating upper and lower surfaces, include both rather than choosing only favorable center images.

A conventional lens may be adequate for a fixed verified plane. If there are multiple calibration planes or views, define which scale applies and when it can be transferred. Use repeatable examples and matching conditions for price comparisons.

For a 24 MHz CMOS board reference, SCTF 2CV SX2M24.000E20F30THN is a candidate. Confirm the complete ordering code, supply, stability, load and board interface. It does not identify the part used in a commercial camera or establish optical scale. Keep traceable comparisons separate if both the lens and clock are replaced.

Frequently asked questions

Will more pixels eliminate magnification error? They can help locate edges. A wrong millimeters-per-pixel factor still gives a wrong dimension.

Can a telecentric lens skip the height test? Verify the real working range, field and image quality against the height span and error limit.

Why test more than one height if repeatability is good? Repeatability at one plane does not establish that the scale applies at another. If use is limited to one plane, record that limit.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.