フィルターのクリア

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