how to detect oval shape

 采纳的回答

Walter Roberson
Walter Roberson 2012-1-1

0 个投票

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.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by