Getting Spots in banana

1 visualización (últimos 30 días)
Allan III T. Condiman
Allan III T. Condiman el 22 de En. de 2020
Comentada: Allan III T. Condiman el 28 de En. de 2020
How to detect blacked spots or disease in banana and draw an color red in spots

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 24 de En. de 2020
Editada: KALYAN ACHARJYA el 24 de En. de 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 comentario
Allan III T. Condiman
Allan III T. Condiman el 28 de En. de 2020
Thank you very much sir.! ^_^

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by