# Mean shift data points

Dear everyone, I am reading about mean shift algorithm, one thing I don't understand is how to create data points from an image, such as below : https://spin.atomicobject.com/wp-cont... Please help me to explain. Thank you!

edit retag close merge delete

Sort by ยป oldest newest most voted

We have a tutorial HERE that shows how meanShift and it's close relation camShift work. Remember, this is mean shift as applied to images. Mean Shift can also be applied to pure data, which is a different task and not something OpenCV does.

I have no idea what that picture is supposed to represent, what with having no title, axis labels, data labels or any form of explanation.

more

Dear Tetragramm, In your link, how I can generate set of points from the image like this: http://docs.opencv.org/3.1.0/meanshif...

( 2016-11-04 02:52:52 -0600 )edit

You don't, that's the point. That's an illustration of how meanshift works in the abstract. The next image down the page is how mean shift works with images.

If you had an arbitrary mean shift algorithm, the points would be your data. Whatever that data is, however you plot it. The circles in the image don't have to be circles, as evidenced by the fact OpenCV uses boxes. The centroid is kind of obvious, but again, calculated differently based on your data.

Good Luck.

( 2016-11-04 07:45:28 -0600 )edit

Dear Teragramm, So what is the next step I need to do? (can you help to epitomize) before you the meanshift function of OpenCV. I jus want to know what is actual when we implement inside the code. I can understand the basic concept of meanshift but I can not imagine its diagram.

( 2016-11-04 12:02:02 -0600 )edit

No offense, but if you don't understand the diagrams, you probably don't understand the basic concept. This is the best explanation I've seen.

( 2016-11-04 17:34:21 -0600 )edit

Official site

GitHub

Wiki

Documentation

## Stats

Asked: 2016-11-03 22:40:33 -0600

Seen: 271 times

Last updated: Nov 03 '16