필터 지우기
필터 지우기

how can we calculate surface area for this leaf in matlab?

조회 수: 12 (최근 30일)
nida
nida 2014년 3월 31일
댓글: Image Analyst 2024년 7월 14일 2:21
only the leaf
  댓글 수: 4
Navoda
Navoda 2024년 7월 13일 19:09
This answer not clear to me
Image Analyst
Image Analyst 2024년 7월 14일 2:21
@Navoda If you have any more questions, then attach your image in a new discussion thread with the paperclip icon after you read this:

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

채택된 답변

Image Analyst
Image Analyst 2014년 3월 31일
Which leaf? There are lots of leaves in that image, and they're all green. That's the problem. So you can either hand trace the leaf with imfreehand(). Demo of imfreehand are attached below in blue.
Or you can try texture segmentation because the giant leaf has a different texture than the "background" leaves. You can use stdfilt or entropyfilt() to do texture segmentation.
Once you've processed it to a point where you can threshold it then you can use regionprops, as shown in my image segmentation tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 I also have color segmentation demos there but since all your leaves are so close in color, that probably won't work.
Finally, to get a "real world" area, instead of pixels, you'll need to spatially calibrate and I attach my demo (below in blue) to show you how to do that.
  댓글 수: 5
Image Analyst
Image Analyst 2017년 11월 7일
You can use color segmentation by hue, or discriminant analysis (if you have the stats toolbox).
See my demo http://www.mathworks.com/matlabcentral/fileexchange/28512-simplecolordetectionbyhue-- or try the Color Threshlder app on the Apps tab of the tool ribbon.
Image Analyst
Image Analyst 2017년 11월 10일
Did that work for you? If not, start your own question in a separate thread.

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2014년 3월 31일
It looks to me that if you were to convert to brightness you could threshold on that to get most of the leaf. The heart of the leaf might not come out exactly right with that due to shadows.
Watershed segmentation would be another approach.

카테고리

Help CenterFile Exchange에서 Agriculture에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by