ocvStructToKeyPoints
将 MATLAB 特征点结构体转换为 OpenCV KeyPoint 向量
C++ 语法
#include "opencvmex.hpp"
void ocvStructToKeyPoints(const mxArray * in,cv::vector<cv::KeyPoint> &keypoints);
参量
in指向 MATLAB® 结构体
mxArray的指针,该结构体表示一个点要素。格式:字段名称 字段要求 字段数据类型 Location必需 单精度 Scale必需 单精度 Metric必需 单精度 Orientation可选 单精度 Octave可选 int32 Misc可选 int32
描述
ocvStructToKeyPoints 函数将点特征数据结构从 MATLAB 结构体转换为 OpenCV 的关键点向量。
版本历史记录
在 R2015a 中推出