Tuesday, March 16, 2010

Color Image Segmentation using Meanshift Algorithm


The meanshift method can be used to segment color image. In this method image pixels is treated as points in color space.In each iteration the meanshift vector is calculated for points which are inside the kernel radius.After that the the old kernel location is changed to meanshift vector's position. Color is also updated. This process continues untill both converge.

Original Image


Meanshift Filterd Image


As the iteration count increases , the same color segment which has same type of colors will get merged together. You can see the effect of meanshift filter on sachin's photo.Its like water painting (not exactly,there are other filters for that. )





27 comments:

Anonymous said...

nice

Ben said...

Would you be able to explain this in more detail? or submit source code for your application?

KD said...

@Ben: I can give you source code,( i hopes i have them at my hard disk, need to search), anyway send me your mail id. Will give you some papers/codes.

fvromet said...
This comment has been removed by the author.
Begottenf said...

Great work,
i'll love to get the source code too.

Thanks

KD said...

@fvromet,@Begottenf send me your mail ids. i will send you to it.. right now am busy with my exams.. But will do on weekend.

Begottenf said...

Hi KD,
here is my email
begottenf@gmail.com

many thanks

yading said...

please send the code to me thank you veru much at baiyading@gmail.com

Anonymous said...

we need source code for mean shift algorithm.... how should we contact u?

Shaun said...

KD please send the code to my gmail id saratchandrasrinivas@gmail.com
its kind of urgent...thanks a lot in advance

KD said...

Sorry Begottenf. I was very busy these days.Didn't get enough time to check my blog.I will send you the source code this week.
@yading,@Shaun :I will send it to ur ids also.

mechanoids said...

hello,

nice app, would it be possible to get the source code?

martin.lukac@gmail.com

thank you

Tang Thi said...

Hi KD, your application is great. I'll love to get your source code, can you give me your source code? My email is tttd107@gmail.com.
Thank you very much!

loony said...

hello.
Sorry for the trouble I'm giving you.
Can you help me with the source code of this app?
my email is loony.cheat@gmail.com

i'll be very grateful to you.

loony said...

hello.
Sorry for the trouble I'm giving you.
Can you help me with the source code of this app?
i'll be very grateful to you.

chillo said...

Hello, KD

Would you be able to submit the meanshift source code? I think the code greatly help me.
Thank you.

e-mail : crow75@snu.ac.kr

Anonymous said...

Hello, KD

Would you be able to submit the meanshift source code? I think the code greatly help me.
Thank you.

e-mail : crow75@snu.ac.kr

Anonymous said...

I am using the mean shift filter in opencv but the border in the image seems terrible. I also tried to implement it myself but the details remain in the image.
Would you like to send the source code to qiankanglai@gmail.com ?
Thank you very much :)

shreyas sheshadri said...

Hey this is SHREYAS , can you mail me your source code here's my email id shreyassheshadri8290@gmail.com

shreyas sheshadri said...

Hey can you mail me your source code , my email id is shreyassheshadri8290@gmail.com

shreyas sheshadri said...

hey can you mail me the code , my email id is shreyassheshadri8290@gmail.com

Hossam Ghareb said...

Hello, please i need the src code please, Could u help me?

Hossam Ghareb said...

Great post, Could u send me the code please? waiting for ur help

eng.hossam.semsem@gmail.com

Christoffer said...

I would also like to see your source code.
My mail is: ribbstolen@gmail.com

I would really appreciate it. You have my eternal gratitude

Thank you

savitha said...

Hi,

Nice result !
Plz send me the source code.
My mail id is savitha_dk@yahoo.com

With thanks,
savitha

juvaria tahseen said...

hi....can you give me the source code of color image segmentation using Meanshift algorithm plz...
i really need it

Anonymous said...

me too (hi....can you give me the source code of color image segmentation using Meanshift algorithm plz... i really need it)

plz