Counting wheat grains and marking them with image processing

I cannot seperate grains in groups properly, and it makes counting and marking not good.

3 comentarios

John D'Errico
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.
Thanks, i forgot to attach the matlab code, that i wrote for this. I think the counting is working within 5% of error, but i have problems with separating the grains in huge clusters properly, thats why i cannot mark them well.
@Robert did you even try the suggestions I gave you in my answer below (scroll down)? If not, why not?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 22 de Mayo de 2024
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

Preguntada:

el 22 de Mayo de 2024

Comentada:

el 23 de Mayo de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by