Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rectangle merging

6 views
Skip to first unread message

Zanie

unread,
Nov 9, 2009, 2:30:08 PM11/9/09
to
[Ilabel num] = bwlabel(Iedge);
Iprops = regionprops(Ilabel);
Ibox = [Iprops.BoundingBox];
Ibox = reshape(Ibox,[4, num]);
imshow(I)
hold on;
for cnt = 1:num
rectangle('position',Ibox(:,cnt),'edgecolor','g');
end

Here is the code in which some rectangles are formed around the elements. 'num' are the number of rectangles formed. 'Ibox' is the array in which its xmin,ymin,width and height is stored. But how can i access the values of each rectangle. Like instead of ':' what else can i use??

0 new messages