color based segmentation

asked 2013-09-01 03:11:54 -0500

subi gravatar image

updated 2013-09-01 03:28:49 -0500

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

input image

the output i am getting after graph based segmentation

the output i am getting after graph based segmentation

desired output

desired output

edit retag flag offensive close merge delete

Comments

1

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.

berak gravatar imageberak ( 2013-09-01 03:18:45 -0500 )edit
1

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..

subi gravatar imagesubi ( 2013-09-01 03:22:29 -0500 )edit

no prob, all well now ;)

berak gravatar imageberak ( 2013-09-01 03:35:16 -0500 )edit

then please help

subi gravatar imagesubi ( 2013-09-01 03:38:04 -0500 )edit
1

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.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-09-02 03:37:38 -0500 )edit
1

clustering the colors with kmeans might have less 'local' effects

berak gravatar imageberak ( 2013-09-02 04:41:19 -0500 )edit
1

thank you Steven and Berak.. I will try what you people have said

subi gravatar imagesubi ( 2013-09-03 03:11:24 -0500 )edit