version 1.0.1 (1.32 KB) by Carlos Sanchez
This function segments an image using Otsu binarization


Updated 25 Jan 2019

View License

This function performs image segmentation according to this procedure
1.Binarization of the image using Otsu method
2. Image dilation.
3. Hole filling.
4. Image erosion.
5. Selection of the biggest region.
6. Contour extraction

It receives the image and kernel size for dilation and erosion.
Returns the segmentation mask as well as the segmented image

Cite As

Carlos Sanchez (2022). segmentation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
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!