Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello masters,

I am working on segmentetion and clssification of images. I read about mean shift, but it is generally used to catch a moving object. As a clustring method, i have some questions about mean shift:

1) How can i create a data model from a pixel? (I read some approaches about this, e.g. a three dimensional vector with the components r,g,s.)
2) How can i create the datasets and calculate the mean value of the dataset?
3) What must be the initial value of a dataset center?

Thanks for your helps.
Posted

1 solution

This article is about the theory: http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/TUZEL1/MeanShift.pdf[^]
But I don't think, this approach is good for photos in general, rather for artificial graphics content.
1) Don't treat colors as RGB, LUV(YUV) or HSB seams more adequate. A pixel consists of it's (x,y,h,s,b) coordinates. You will need to define a distance measure for pixels. I suppose position will have to have more weight than color distance. (Color models[^])
For the later two you have to figure it out based on the algorithm itself. The simplest dataset would be an array.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900