Count overlapping Objects Matlab image
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (3)
Mahesh Taparia
le 16 Déc 2020
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 commentaire
Image Analyst
le 16 Déc 2020
Modifié(e) : Image Analyst
le 16 Déc 2020
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
le 18 Déc 2020
1 commentaire
Image Analyst
le 18 Déc 2020
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.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!