how to find overlapped connected components

1 次查看(过去 30 天)
After I calculate the bounding boxes of each connected components , I want to extract all the vertically overlapped connected components ( completely overlapped , partially overlapped from right side and from left side) what is the best way to do it ?
this is part of my code:
fobr = imread(image);
s1 = regionprops(fobr);
X=[];
Y=[];
for i = 1:numel(s1)
X =[X; s1(i).BoundingBox(1) s1(i).BoundingBox(3)+ s1(i).BoundingBox(1)];
Y =[Y; s1(i).BoundingBox(2) s1(i).BoundingBox(4)+ s1(i).BoundingBox(2)];
end
this is X
X =
1.0e+03 *
0.0345 0.0935
0.1035 0.1565
0.1815 0.2175
0.1915 0.2825
0.2745 0.2895
0.3175 0.3615
0.3655 0.5105
0.3845 0.4085
0.3965 0.4725
0.4515 0.4935
0.5445 0.6145
0.6515 0.8065
0.8095 0.8525
0.8575 0.8825
0.8775 0.8865
0.9005 1.0925
1.1185 1.1295
1.1635 1.4325
1.4605 1.5395
1.5435 1.5785
1.5665 1.5765
1.6215 1.6655
1.6365 1.7265
1.7075 1.8905
1.7085 1.7665
1.7985 1.8275
1.8985 1.9675
1.9775 2.1185

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by