10 #include "opencv2/features2d.hpp" 21 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
27 vector<MxArray> rhs(prhs, prhs+nrhs);
31 vector<vector<DMatch> > matches1to2(rhs[0].toVector(
32 const_mem_fun_ref_t<vector<DMatch>,
MxArray>(
33 &MxArray::toVector<DMatch>)));
34 vector<vector<uchar> > correctMatches1to2Mask(
35 MxArrayToVectorVectorPrimitive<uchar>(rhs[1]));
36 vector<Point2f> recallPrecisionCurve;
37 computeRecallPrecisionCurve(
38 matches1to2, correctMatches1to2Mask, recallPrecisionCurve);
39 plhs[0] =
MxArray(Mat(recallPrecisionCurve,
false).reshape(1,0));
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/ouput arguments number check.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
Common definitions for the features2d and xfeatures2d modules.
Global constant definitions.