1 | initial version |
One of the fields of KeyPoint object is 'pt', which is the coordinate of those key point. Its type is Point32f. So you can access you coordinates like this:
Point32f p = keypoints_object[i].pt;
Or like this
float x = keypoints_object[i].pt.x;
float y = keypoints_object[i].pt.y;
See here for more information about fields of KeyPoint.
2 | No.2 Revision |
One of the fields of KeyPoint object is 'pt', which is the coordinate of those this key point. Its type is Point32f. So you can access you the coordinates like this:
Point32f p = keypoints_object[i].pt;
Or like this
float x = keypoints_object[i].pt.x;
float y = keypoints_object[i].pt.y;
See here for more information about fields of KeyPoint.
3 | No.3 Revision |
One of the fields of KeyPoint object is 'pt', which is the coordinate of this key point. Its type is Point32f. Point2f. So you can access the coordinates like this:
Point32f Point2f p = keypoints_object[i].pt;
Or like this
float x = keypoints_object[i].pt.x;
float y = keypoints_object[i].pt.y;
See here for more information about fields of KeyPoint.