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

only the leaf
4 Comments
Navoda
on 13 Jul 2024
How can calculate leaf area for this matlab
Image Analyst
on 13 Jul 2024
@Navoda click on the leaf tag on the right hand side of this page and you'll find lots of applications that do that. This one is a little harder because the leaf is green, as well as the background. But if your images have green leaves on a ctrasting color background, you can use the Color thresholder app on the Apps tab ofthe tool ribbon to create a mask. Then to get the area you can sum the mask pixels or use bwarea
leafArea = sum(leafMask(:))
leafArea = bwarea(leafMask)
Navoda
on 13 Jul 2024
This answer not clear to me
Image Analyst
on 14 Jul 2024
@Navoda If you have any more questions, then attach your image in a new discussion thread with the paperclip icon after you read this:
Accepted Answer
More Answers (1)
Walter Roberson
on 31 Mar 2014
0 votes
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
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
