Convert MATLAB feature points struct to OpenCV KeyPoint
vector
#include "opencvmex.hpp"
void ocvStructToKeyPoints(const
mxArray * in,cv::vector<cv::KeyPoint> &keypoints);
in
Pointer to a MATLAB® structure, mxArray
, that represents a point feature.
Format:
Field Name | Field Requirement | Field Data Type |
---|---|---|
Location | Required | Single |
Scale | Required | Single |
Metric | Required | Single |
Orientation | Optional | Single |
Octave | Optional | int32 |
Misc | Optional | int32 |
The ocvStructToKeyPoints
function converts
a point feature data structure from a MATLAB struct to an OpenCV's
KeyPoint vector.