detect_color_shape.​zip

Detects the color and shapes (circle, triangle, rectangle) of input rgb image
891 Downloads
Updated 20 Jun 2014

View License

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
Created with R2010b
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.0.0.0