Getting Spots in banana
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Allan III T. Condiman
il 22 Gen 2020
Commentato: Allan III T. Condiman
il 28 Gen 2020
How to detect blacked spots or disease in banana and draw an color red in spots
0 Commenti
Risposta accettata
KALYAN ACHARJYA
il 24 Gen 2020
Modificato: KALYAN ACHARJYA
il 24 Gen 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!