Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
Rahul punk
Rahul punk le 12 Jan 2019
Commenté : Rahul punk le 14 Jan 2019
  1 commentaire
Rahul punk
Rahul punk le 12 Jan 2019
the size of images all time change so not a constant image size.
thank you!

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 12 Jan 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 commentaires
Image Analyst
Image Analyst le 13 Jan 2019
Use bwareafilt()
biggestBlob = bwareafilt(binaryImage, 1); % Extract largest blob ONLY
areaOfBiggestBlob = nnz(biggestBlob) % Get its area
Rahul punk
Rahul punk le 14 Jan 2019
its very easy thanks image analysis

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Produits


Version

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by