Count Color objects in images

2019-08-08 21:32发布

问题:

I'm working in image segmentation, testing a lot of different segmentation algorithms, in order to do a comparitive study. At the moment i've implemented the mean shift algorithm. I would like to count the objects segmented in the image. In this images there are two types of objects, with different colors. I have a the manually counting done by specialists so i would like to compare the results.

The result image is:

There is any way for me to automize this process?

Can you please help me out!?

Thanks a lot in advance. John