find figures (squares, rectangles, circles) with matlab
Show older comments
Propose an algorithm that allows to identify the shape of the object between whether it is square, rectangular, round or oval
3 Comments
KSSV
on 3 Apr 2022
What data you have?
Cristian De la Vega
on 3 Apr 2022
Walter Roberson
on 3 Apr 2022
Hint: eccentricities
Accepted Answer
More Answers (1)
Image Analyst
on 3 Apr 2022
1 vote
regionprops() now has a 'Circularities' option.
See my attached shape recognition demos. One uses circularity but I think the more robust one is one that plots the distance of the perimeter from the centroid and looks for peaks, which counts the number of vertices.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
