How do I create a MINIMUM bounding box on an object/ s in this image

5 Ansichten (letzte 30 Tage)
adrian satmari
adrian satmari am 26 Feb. 2020
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 :(

Antworten (0)

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!

Translated by