how to detect oval shape

 Accepted Answer

Walter Roberson
Walter Roberson on 1 Jan 2012

0 votes

Probably much like the code Chandra provided you for detecting squares, except changing the arguments to the rectangle() call a bit. The rectangle() call is able to draw ovals if you give it the proper arguments. regionprops() can tell you the major and minor axes of the object.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!