Counting wheat grains and marking them with image processing
Mostrar comentarios más antiguos

I cannot seperate grains in groups properly, and it makes counting and marking not good.
3 comentarios
John D'Errico
el 22 de Mayo de 2024
Editada: John D'Errico
el 22 de Mayo de 2024
If you want help, then show what you tried, at least say what you tried. Otherwise, you become no different from the hordes of students who make no effort, and just demand someone do their homework for them.
Robert
el 22 de Mayo de 2024
Image Analyst
el 23 de Mayo de 2024
@Robert did you even try the suggestions I gave you in my answer below (scroll down)? If not, why not?
Respuestas (1)
Image Analyst
el 22 de Mayo de 2024
0 votos
First of all, you need to improve your image capture setup. Why do you have such a horrible, colored, and non-uniform lighting? That should be easy to fix. Secondly you will need to do a background correction by dividing the test image by the background. MATLAB also has a background flattening function in one of its toolboxes. Then you can segment the image.
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.
As you said, some grains are touching so you'll need to split them apart. See Steve's blogs on how to do this:
Categorías
Más información sobre Language Support en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!