Getting Spots in banana

1 vue (au cours des 30 derniers jours)
Allan III T. Condiman
Allan III T. Condiman le 22 Jan 2020
How to detect blacked spots or disease in banana and draw an color red in spots

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 24 Jan 2020
Modifié(e) : KALYAN ACHARJYA le 24 Jan 2020
rgbImage=imread('ban.jpeg');
subplot(121),imshow(rgbImage);
grayImage=rgb2gray(rgbImage);
[segment,blackSpots]=bwlabel(~im2bw(grayImage,0.7));
% Choose the threshold as per requirements
total_bk_spots=blackSpots-1
%................^ minus 1 for ignoring largest blobbs
subplot(122),imshow(segment);
If not, then do the color thresholding.
  1 commentaire
Allan III T. Condiman
Allan III T. Condiman le 28 Jan 2020
Thank you very much sir.! ^_^

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by