
As the graph showed, I would like to enter an image and get several segments as a result.
This is exactly the same as the cluster of the nearest color segment, so I think that it is close to the concept of โcontributingโ?
I searched for relevant questions here, but still don't know how to start and build a structure in opencv C ++. I am looking for some advice, and I will be very grateful that you will receive the implementation code for me! Thanks for any help!
====================================================
Edit 5/19/2015
Let me add that one of my implementation attempts is Watershed here :( http://blog.csdn.net/fdl19881/article/details/6749976 ).

This is not perfect, but I want the result. In this tool, the user must work manually (draw the watershed lines), so I'm looking for an AUTOMATIC version. It sounds a little complicated, but ... I will be grateful for some suggestion or piece of code to do this.
Oasis source share