# How to identify shapes in an image

I have an image like that:

And I want to identify shapes in it:

I consider ComponentMeasurements and HighlightImage but I don't know how to achieve it.

• you might be interested in ImageCorrelate. – Sumit Oct 18 '17 at 8:01
• Look at MorphologicalComponents. For something simple like this it should work fine. – b3m2a1 Oct 18 '17 at 8:58
• I use ImageCorrelate and solve the problem.Thanks! – Luxuan Qi Oct 18 '17 at 19:46
• You can post your own solution as an answer, it is encouraged here. – Alexey Popkov Oct 26 '17 at 14:19
• @b3m2a1 MorphologicalComponents won't help here since the shapes are too close together. They are, exactly as the shapes themselves connected by an 8-neighborhood and cannot be separated easily. – halirutan Oct 26 '17 at 15:03