How to use keypoints from another library to OpenCV?

asked 2016-06-06 20:56:36 -0600

lovaj gravatar image

I'm using the Fast SIFT Image Features Library, which is incredibly faster than the OpenCV implementation (approx 0.01 sec for keypoints and descriptors computations!).

This is the code about how keypoints+descriptor are created:

...
Image image = ReadPGM(stdin);
Keypoint keypts;
keypts = GetKeypoints(image);

Where:

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;

ReadPGM definition isn't relevant for this question.

So my question is: how can I use keypts obtained from the code above in OpenCV?

edit retag flag offensive close merge delete

Comments

can you spare us duplicates, please ?

berak gravatar imageberak ( 2016-06-06 22:23:58 -0600 )edit

The two questions are different: the first one involves files, this one doesn't. They are slightly different.

lovaj gravatar imagelovaj ( 2016-06-06 22:57:15 -0600 )edit

k,ok, just saying ..

berak gravatar imageberak ( 2016-06-06 23:10:04 -0600 )edit