32 nargchk(nrhs>=2 && (nrhs%2)==0 && nlhs<=2);
39 TermCriteria criteria(TermCriteria::COUNT+TermCriteria::EPS, 50, 0.001);
42 for (
int i=2; i<nrhs; i+=2) {
43 string key(rhs[i].toString());
44 if (key ==
"MotionType")
46 else if (key ==
"Criteria")
47 criteria = rhs[i+1].toTermCriteria();
48 else if (key ==
"Mask")
49 inputMask = rhs[i+1].toMat(
CV_8U);
50 else if (key ==
"InputWarp")
51 warpMatrix = rhs[i+1].toMat(
CV_32F);
54 "Unrecognized option %s", key.
c_str());
61 motionType, criteria, inputMask);
double findTransformECC(InputArray templateImage, InputArray inputImage, InputOutputArray warpMatrix, int motionType=MOTION_AFFINE, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 50, 0.001), InputArray inputMask=noArray())
struct mxArray_tag mxArray
Forward declaration for mxArray.
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...
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/output arguments number check.
Global constant definitions.
std::map wrapper with one-line initialization and lookup method.