how to crop bigger size of blob in binary image and count its pixel .

3 visualizzazioni (ultimi 30 giorni)
  1 Commento
Rahul punk
Rahul punk il 12 Gen 2019
the size of images all time change so not a constant image size.
thank you!

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 12 Gen 2019
Not sure what you mean. You can use imcrop() if you want. You can also find the bounding boxes if you want:
props = regionprops(binaryImage, 'BoundingBox');
To crop out each one individually, do this
for k = 1 : length(props)
thisBB = props(k).BoundingBox;
subImage = imcrop(binaryImage, thisBB);
figure;
imshow(subImage);
end
This is done in my Image Processing Tutorial
screenshot.jpg
  3 Commenti

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by