Image Morphology

An interactive environment for morphologically operating on images.
21.3K Downloads
Updated 30 Jun 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The Image Morphology app is an interactive exploratory environment, with which you can try different morphological operations and structuring elements on your image.
This app supports most morphological operations, including those (like BWHITMISS) that can take multiple STRELS. All STRELS, including arbitrary ones, are now supported. You can easily see the effects of changing the size or shape of your STREL, or of trying different morphological operations. You can also "activate" the modified image to string operations.
The Image Morphology app is a REPLACEMENT FOR MORPHTOOL, which has been shared on the File Exchange since 2007. This version fixes several minor (but long-standing) bugs, and addresses changes needed for R2014b readiness. Image Morphology (as an app, or as function |imageMorphology|) should be more stable and less buggy than previous versions.

Comments/suggestions/collaborations welcome.

Cite As

Brett Shoelson (2024). Image Morphology (https://www.mathworks.com/matlabcentral/fileexchange/23697-image-morphology), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.40

Fixes a bug after loading a new image.

1.19.0.0

Users of MorphTool may want to consider upgrading to ImageMorphology. I addressed many small issues in this version.

1.18.0.0

Several improvements/updates, including better loading of new images (from file or workspace); default 0-sized strel (this is desirable for large images); and incorporation of new ExpandAxes, which now allows right-click exporting of images!

1.17.0.0

Added in sound files.

1.16.0.0

Updated to include an App file for R2012b.

1.14.0.0

Flattened directory structure to avoid confusion. Replaced deprecated argument-checking functions, and added file-loading functionality when MorphTool is a child of a figure.

1.13.0.0

Includes a missing subfunction.

1.12.0.0

Changed the description only.

1.11.0.0

Including omitted StrelTool file.

1.8.0.0

Updating screenshot.

1.5.0.0

Fixed stability/responsiveness issue. Also adds support for a number of different morphological operations.

1.3.6

Fixes an image-import issue.

1.3.5

I think I have fixed issues introduced by changes in R2019b. Please let me know if you find any issues!

1.3.1.0

V1.3.1.0 addresses a bug in tabPanel introduced by changes in the sharing of variables in subfunction workspaces.

1.3.0.0

Fixes an error that arose because of changes to core MATLAB's inclusion of subfunctions. Should be fine for R2019b and beyond. (Will work fine in earlier versions, too.)
09/09/2009 Provides missing functions/subfunctions.

1.2.0.0

A small bug fix in a portion of the generate code, plus better tooltips.

1.1.0.0

9/5/2009 Re-zipped with missing functions StrelTool and expandAxes.

1.0.0.0