Ask Your Question
0

Mean shift data points

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

greenworld gravatar image

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 flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-03 22:50:07 -0600

Tetragramm gravatar image

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.

edit flag offensive delete link more

Comments

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

greenworld gravatar imagegreenworld ( 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.

Tetragramm gravatar imageTetragramm ( 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.

greenworld gravatar imagegreenworld ( 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.

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

Question Tools

1 follower

Stats

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

Seen: 327 times

Last updated: Nov 03 '16