Showing posts with label Sachin. Show all posts
Showing posts with label Sachin. Show all posts

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