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

19 views (last 30 days)
only the leaf

Accepted Answer

Image Analyst
Image Analyst on 31 Mar 2014
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 Comments
Image Analyst
Image Analyst on 10 Nov 2017
Did that work for you? If not, start your own question in a separate thread.

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 31 Mar 2014
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.

Categories

Find more on Agriculture in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by