我想使用siftfast来计算SIFT关键点,然后在OpenCV中使用它们。
Keypoint
结构在siftfast.h
中定义为:
typedef struct KeypointSt {
float row, col; // Subpixel location of keypoint.
float scale, ori; // Scale and orientation (range [-PI,PI])
float descrip[128]; // Vector of descriptor values
struct KeypointSt *next; // Pointer to next keypoint in list.
} *Keypoint;
opencv关键点的构造函数是:
KeyPoint (float x, float y, float _size, float _angle=-1, float _response=0, int _octave=0, int _class_id=-1)
现在,我必须找到一种方法将siftfast的Keypoint
映射到OpenCV KeyPoint
:
row
== x
col
== y
但其他价值呢?你能帮助我转换吗?