Main Content

Measurement

R2026b
Measure distances and geometric features for metrology and dimensional inspection
Since R2026b

Transform image data from pixel coordinates into calibrated world units and perform precise geometric measurements. The Visual Inspection Toolbox™ supports these measurement processes:

  • World-plane mapping — Map images and individual points to a planar measurement surface using camera intrinsics and extrinsics, correcting lens and perspective distortion.

  • Caliper tools — Measure distances along straight-line profiles, programmatically or interactively.

  • Geometric fitting — Fit angles, circles, and perpendicular distances to edge features for dimensional measurements, with automatic edge snapping for repeatable placement.

These capabilities support dimensional inspection, part verification, and metrology applications where pass or fail decisions depend on calibrated world unit measurements.

Functions

expand all

imageToWorldPlaneRectify and align image with reference plane in world coordinate system
imageToWorldPlaneMappingCompute displacement field to map image plane with reference plane in world coordinate system
imagePointsToWorldPlaneProject image points onto reference plane in world coordinate system
caliperMeasure distance in image data using caliper tool
uicaliperInteractively measure distances in images using caliper tool
fitangleMeasure angle in image using angle tool
fitcircleMeasure circle in image using circle tool
uitsquareInteractively measure distance perpendicular to edge using point-to-line measurement tool
uifitangleInteractively measure angle in image using angle tool
uifitcircleInteractively measure circles in image using circle tool
snapSnap measurement tool line or points to edge in image

Featured Examples