Getting Spots in banana
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Allan III T. Condiman
am 22 Jan. 2020
Kommentiert: Allan III T. Condiman
am 28 Jan. 2020
How to detect blacked spots or disease in banana and draw an color red in spots
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 24 Jan. 2020
Bearbeitet: KALYAN ACHARJYA
am 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis 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!