color based segmentation
how to segment an image in such a way that similar colored objects are grouped in a single cluster and each cluster will have separate color. i am attaching the desired output images below.. please help me.. please..
input image
the output i am getting after graph based segmentation
desired output
oh, please, could you shorten your title and put your actual question inside the text ?
also, it would be good to know, what you tried before, i.e how you segmented that image.
sorry for the inconvenience.. i had tried graph based image segmentation. I have posted links to the desired output image and the result i am getting.. I am new to this group..
no prob, all well now ;)
then please help
Why not try the following approach, take all your intensities of your matrix, so that each pixel represents a 3 dimensional point (color based BGR coordinates), put them into a clustering algorithm like knn-clustering and then assign each cluster a color? It seems the most basic way to adress this problem. However, segmentation is an active research topic, with alot of interest in the academic community. Look at papers of CVPR2012 and 2013 for latest state of the art techniques.
clustering the colors with kmeans might have less 'local' effects
thank you Steven and Berak.. I will try what you people have said