Segment images interactively, and generate MATLAB code

An interactive app and function for segmenting images.

You are now following this Submission

Interactive UI for segmenting images. Explore different approaches, then export segmentation mask and reproduction code.
Supports all tunable parameters for EDGE detection, THRESHOLDING (including MULTITHRESH/IMQUANTIZE), HOUGH (line and circle detection), regional and extended minima and maxima, and COLOR thresholding.
PLEASE NOTE: From R2014b forward, this is intended as a REPLACEMENT for SegmentTool. This version will not work prior to R2014b, but SegmentTool will not work in R2014b.

Comments, suggestions appreciated!

Cite As

Brett Shoelson (2026). Segment images interactively, and generate MATLAB code (https://uk.mathworks.com/matlabcentral/fileexchange/48859-segment-images-interactively-and-generate-matlab-code), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7

Modified the usage of adaptive thresholding.

1.6

Fixed shared-workspace issues.

1.5

I think I have fixed issues introduced by workspace changes in R2019b. Please notify me if you have any problems. Thanks!

1.0.0.1

Updated license

1.0.0.0