detect_color_shape.zip
User selects a color pixel and the region containing similar color is selected.
The basic shapes (Circle, triangle and rectangle) are detected. bwconncomp is used to find connected components and regionprops is used to measure shape properties.
Circle is detected using roundness
Rectangle and triangle are detected counting enclosing boundary edges
ie input must be rgb and of high resolution otherwise false edge may be detected.
Cite As
Naila Bushra (2024). detect_color_shape.zip (https://www.mathworks.com/matlabcentral/fileexchange/47015-detect_color_shape-zip), 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 > Region and Image Properties >
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |