ocvKeyPointsToStruct
Convert OpenCV KeyPoint
vector to
MATLAB struct
C++ Syntax
#include "opencvmex.hpp"
mxArray
*ocvKeyPointsToStruct(cv::vector<cv::KeyPoint> &in);
Arguments
in
Reference to an OpenCV's KeyPoint vector.
Returns
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 |
Description
The ocvKeyPointsToStruct
function
converts a point feature data structure from an
OpenCV KeyPoint vector to a MATLAB struct.
See Also
mxArray
, ocvStructToKeyPoints
, C Matrix API, Write C Functions Callable from MATLAB (MEX Files)
Version History
Introduced in R2015a