detect_color_shape.​zip

Detects the color and shapes (circle, triangle, rectangle) of input rgb image

You are now following this Submission

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 (2026). detect_color_shape.zip (https://www.mathworks.com/matlabcentral/fileexchange/47015-detect_color_shape-zip), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0