Convert OpenCV KeyPoint
vector to MATLAB struct
#include "opencvmex.hpp"
mxArray
*ocvKeyPointsToStruct(cv::vector<cv::KeyPoint> &in);
in
Reference to an OpenCV's KeyPoint vector.
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 ocvKeyPointsToStruct
function converts
a point feature data structure from an OpenCV KeyPoint vector to a MATLAB struct.