MATLAB Answers

Getting Spots in banana

조회 수: 22(최근 30일)
How to detect blacked spots or disease in banana and draw an color red in spots

  댓글 수: 0

로그인 to comment.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 24 Jan 2020
편집: KALYAN ACHARJYA 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

Allan Condiman
Allan Condiman 28 Jan 2020 7:33
Thank you very much sir.! ^_^

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by