How do I create a MINIMUM bounding box on an object/ s in this image
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I write this coe and I got this:
labelImg = bwlabel(BW); % BW-binary image
objectsDetail = regionprops(labelImg,'all');
numberOfObjects = size(objectsDetail, 1);
ii=1;
for k=1:numberOfObjects
boundary = B{k};
thisBlobsBoundingBox = objectsDetail(k).BoundingBox;
subImage = imcrop(BW, thisBlobsBoundingBox);
imshow(subImage)
end
I would like to get something like this, but I have no idea :(
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!