color image segmentation
An implementation of [1], it works in follows:
1. Compute the Jmap.
2. Compute the valleys of Jmap.
3. Valleys growing as the oversegmentation.
4. Region merging.
Example usage:
%labels = colorImgSeg('images\sflowg.jpg', 12, 5, 10,0.35, 0.02, 0.88);
To run the code, you have to firstly generate the necessary dlls in
"local_min", "Jmap", "seededRegionGrowing" and "Region_merging"
in each folder, run the corresponding compling m-file to generate dlls, which are:
local_min_complie, Jmap_complie, seededRegionGrowing_complie, and RegionMerging_complie respectively.And then copy the corresponding dlls to the parent directory
reference:
[1]Yining Deng, B.S. Manjunath, Hyundoo Shin, "Color Image Segmentation,"
cvpr, vol. 2, pp.2446, 1999 IEEE Computer Society Conference on Computer
Vision and Pattern Recognition (CVPR'99)- Volume 2, 1999
Acknowledgement:
The author wish to thank Sebastien Paris for his detailly comments on compling and his useful suggestions to improve the code.
Cite As
Su Dongcai (2024). color image segmentation (https://www.mathworks.com/matlabcentral/fileexchange/29512-color-image-segmentation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Color Segmentation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.