find vertically overlapped bounding boxes?
显示 更早的评论
I want to extract vertically overlapped bounding boxes and connect them vertical line, attached image show the overlapped bounding box.

I am using below code, Can any one help me regarding extracted vertically overlapped boxes.
propied=regionprops(L,'Area','BoundingBox','MajorAxisLength');
X=[];
Y=[];
for n=1:size(propied,1)
rectangle('Position',propied(n).BoundingBox,'EdgeColor','r','LineWidth',1)
X =[X; propied(n).BoundingBox(1) propied(n).BoundingBox(3)+ propied(n).BoundingBox(1)];
Y =[Y; propied(n).BoundingBox(2) propied(n).BoundingBox(4)+propied(n).BoundingBox(2)];
end
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Design Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!