Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get the coordinate from "class KeyPoint"?

The following is my code.

std::vector<keypoint> keypoints_object, keypoints_scene; detector.detect( img_object, keypoints_object ); detector.detect( img_scene, keypoints_scene );

I'm trying to get the coordinate in the keypoints_object & keypoints_scene to store in another variable. Does someone know how to do it? (PS:My opencv version is 2.4.2)

How to get the coordinate from "class KeyPoint"?

The following is my code.

std::vector<keypoint> keypoints_object, keypoints_scene; detector.detect( img_object, keypoints_object ); detector.detect( img_scene, keypoints_scene );

I'm trying to get the coordinate in the keypoints_object & keypoints_scene to store in another variable. Does someone know how to do it? (PS:My opencv version is 2.4.2)

click to hide/show revision 3
No.3 Revision

How to get the coordinate from "class KeyPoint"?

The following is my code.

std::vector<keypoint>

std::vector<KeyPoint> keypoints_object, keypoints_scene;
detector.detect( img_object, keypoints_object );
detector.detect( img_scene, keypoints_scene );

);

I'm trying to get the coordinate in the keypoints_object & keypoints_scene to store in another variable. Does someone know how to do it? (PS:My opencv version is 2.4.2)