Getting Spots in banana

조회 수: 1 (최근 30일)
Allan III T. Condiman
Allan III T. Condiman 2020년 1월 22일
댓글: Allan III T. Condiman 2020년 1월 28일
How to detect blacked spots or disease in banana and draw an color red in spots

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 1월 24일
편집: KALYAN ACHARJYA 2020년 1월 24일
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 III T. Condiman
Allan III T. Condiman 2020년 1월 28일
Thank you very much sir.! ^_^

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by