Count overlapping Objects Matlab image
16 次查看(过去 30 天)
显示 更早的评论
I would like to count as many leaves as possible in this image. I was thinking about using edge detection and count either the peaks of the leaves or the main vein of the leaf. I was trying to use hough but it did not work.
0 个评论
回答(3 个)
Mahesh Taparia
2020-12-16
Hi
You can try with area based approach which can give an approximate count of leaves. First segment the leaves from background and count the number of foreground pixels using regionprops function. Approximate the number of pixels in single leaf by taking few leaves samples and counting. Finally divide the total pixel count with 1 leaf count. It will give a rough estimate. However,if you have more data then you can try deep learning based approach. Hope it will help!
1 个评论
Image Analyst
2020-12-16
编辑:Image Analyst
2020-12-16
I agree. Since your leaves are very overlapped, there's almost no possibility of separating them. You can see that your edge detection method was a total disaster. The best approach would be to get total area and divide by the average leaf area or a deep learning approach, both of which Mahesh suggested. Now if your leaves were all well separated, it would be a much, much easier problem
Actually you may not even have to count the leaves, even though you might think that at first. If you just want to monitor plant growth, computing the total area may be a good metric to go with. It probably correlates pretty well with the number of leaves and it's much, much easier to compute.
Lennart Strunk
2020-12-18
1 个评论
Image Analyst
2020-12-18
Even if you hand counted them, you'd have a hard time. I still maintain that you should just go with area fraction rather than leaf count. What do you REALLY need to measure and why do you think area fraction will not give it to you. And don't just say we want to count leaves because we want to count leaves. The question is WHY you think you need to count leaves instead of going with area fraction. Like, if you just want to measure plant growth over time, area fraction is probably just as good as leaf count.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!