Ask Your Question

Shaochan's profile - activity

2020-04-08 09:00:23 -0600 received badge  Popular Question (source)
2013-09-03 10:03:34 -0600 received badge  Editor (source)
2013-09-03 09:21:35 -0600 received badge  Student (source)
2013-09-03 09:00:30 -0600 asked a question Color of Keypoint with floating coordinates

There are some missunderstandings, so I changed the question:

The coordinates of a keypoint are saved with floating values.

KeyPoint(float x, float y, float _size, float _angle=-1, float _response=0, int _octave=0, int _class_id=-1)

So the coordinates do not exactly match with a certain pixel but is within one pixel. That's how I unterstand it. Maybe I missunderstood.

I detect features to get color information. When I have keypointBob he is somewhere in the image img. I can get the color value by calling: img.at<vec3b>( keypointBob.pt)[]

Is OpenCv taking directly the color of the pixel (where the keypoint is within) or does OpenCv consider the neighbors?

I hope it's more clear now.