I have an image like that: enter image description here

And I want to identify shapes in it:

enter image description here

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

  • 1
    $\begingroup$ you might be interested in ImageCorrelate. $\endgroup$ – Sumit Oct 18 '17 at 8:01
  • $\begingroup$ Look at MorphologicalComponents. For something simple like this it should work fine. $\endgroup$ – b3m2a1 Oct 18 '17 at 8:58
  • $\begingroup$ I use ImageCorrelate and solve the problem.Thanks! $\endgroup$ – Luxuan Qi Oct 18 '17 at 19:46
  • 1
    $\begingroup$ You can post your own solution as an answer, it is encouraged here. $\endgroup$ – Alexey Popkov Oct 26 '17 at 14:19
  • 1
    $\begingroup$ @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. $\endgroup$ – halirutan Oct 26 '17 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.