Count overlapping Objects Matlab image
조회 수: 22 (최근 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!