how to label and detect biggest rectangle amongst others???

5 次查看(过去 30 天)
1.i want to perform numbering on each rectangle in the image.how should i do this in matlab??
2. i want to find the rectangle which is biggest in size amongst others.how to detect this.. please help thanks
  2 个评论
Henric Rydén
Henric Rydén 2014-5-19
Hi,
  1. What do you mean by rectangle? Is that a feature in the image or an object you've created with something like imrect?
  2. By biggest, do you mean largest area or something else?
ramdas patil
ramdas patil 2014-5-19
sir, i have uploaded the image,and i want to say the largest area of the rectangle....

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2014-5-19
You forgot to post your image. So all I can do is to refer you to my Image Segmentation Tutorial in my File Exchange and to the attached demo that takes the largest region(s).
  1 个评论
Image Analyst
Image Analyst 2014-5-19
OK, I see it now. My demo code will work. Just modify it slightly to read in your image instead of mine and invert it so that the rectangles are bright and the background black.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by