30 if (rhs[1].isNumeric() && rhs[2].isNumeric()) {
33 newPoints1, newPoints2;
35 newPoints1, newPoints2);
36 if (points1.channels() == 1)
37 newPoints1 = newPoints1.
reshape(1, newPoints1.
cols);
38 if (points2.channels() == 1)
39 newPoints2 = newPoints2.
reshape(1, newPoints2.
cols);
44 else if (rhs[1].isCell() && rhs[2].isCell()) {
46 points2(rhs[2].toVector<Point2d>()),
47 newPoints1, newPoints2;
struct mxArray_tag mxArray
Forward declaration for mxArray.
Mat reshape(int cn, int rows=0) const
LIBMWMEX_API_EXTERN_C void mexErrMsgIdAndTxt(const char *identifier, const char *err_msg,...)
Issue formatted error message with corresponding error identifier and return to MATLAB prompt...
void correctMatches(InputArray F, InputArray points1, InputArray points2, OutputArray newPoints1, OutputArray newPoints2)
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/output arguments number check.
Global constant definitions.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.