如何将David Lowe关键点转换为OpenCV关键点?

时间:2016-06-22 08:33:58

标签: c++ opencv sift

我想使用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

但其他价值呢?你能帮助我转换吗?

0 个答案:

没有答案