Info

This question is closed. Reopen it to edit or answer.

How can I identify objects in a cluttered image by their shape/colour?

1 view (last 30 days)
I've written some code so that when an image is supplied to MATLAB, it uses predetermined parameters to highlight any areas which match the required colours. From this collection of highlighted areas, I want to find any which correspond to round object (as this is trying to look for fruit in a cluttered image). None of the methods shown in examples by MathWorks seem to work, as they all require empty background space between the objects

Answers (2)

Alessandro La Chioma
Alessandro La Chioma on 4 Aug 2017
Without seeing the image and without knowing what you specifically tried and did not work, I can only suggest to have a look here, which seems to fit exactly your needs: http://www.mathworks.com/help/images/examples/marker-controlled-watershed-segmentation.html#zmw57dd0e3403 Good luck!

Image Analyst
Image Analyst on 4 Aug 2017
Also read this link and attach your image if you'd like more specific help.

Community Treasure Hunt

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

Start Hunting!