Skip to content

About

Measure image features with subpixel accuracy by snapping to detected edges.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Visual Inspection Edge Snapping App

Open in MATLAB Online

Measure image features with subpixel accuracy by snapping to detected edges, eliminating manual point-placement errors in quality control and metrology workflows.

Visual Inspection Edge Snapping App

About This Example

Manual measurements on images are limited by the precision of hand-placed points. This app solves that problem by automatically detecting and snapping to edges near your measurement, delivering more accurate results for quality-control engineers and metrology professionals.

The app supports four measurement types -- caliper distance (uicaliper), perpendicular T-square distance (uitsquare), three-point angle (uifitangle), and circle fit (uifitcircle) -- each with configurable snap sensitivity and pixel-to-world-unit calibration. Draw multiple measurements on an image and export results to the MATLAB workspace.

Setup

Products

Requires MATLAB® R2026b or newer.

Also requires the following MathWorks products:

  • Visual Inspection Toolbox™

Getting Started

Open EdgeSnappingMeasurementApp.m in App Designer or see the guided walkthrough on the documentation page.

Example Files

File Description
EdgeSnappingMeasurementApp.m The App Designer app for edge-snapping measurement
EdgeSnappingMeasurementApp.xml App component layout data

License

The license is available in the license.txt file in this GitHub repository.

Community Support

MATLAB Central

Copyright 2026 The MathWorks, Inc.

About

Measure image features with subpixel accuracy by snapping to detected edges.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages