필터 지우기
필터 지우기

How to count the number of leaves?

조회 수: 2 (최근 30일)
Malini
Malini 2019년 6월 4일
댓글: Keane Athallah 2022년 5월 19일
Count the number of leaves in this imageSV2.png
  댓글 수: 3
Malini
Malini 2019년 6월 6일
inimage = imread('image.png');
mask = inimage(:,:,1)<inimage(:,:,2) & inimage(:,:,3)<inimage(:,:,2); %// 2D mask
outimage = bsxfun(@rdivide, inimage, uint8(mask));
figure, imshow(inimage);
figure,imshow(outimage);
figure,imshow(mask);
Morp= imfill(mask,'holes');
SImage = bwmorph(Morp,'skel',Inf);
fill=bwmorph(SImage,'fill');
figure, imshow(fill);
The output is
Keane Athallah
Keane Athallah 2022년 5월 19일
is there any code that i can count the leaves?

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

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by