43 int id = rhs[0].toInt();
44 string method(rhs[1].toString());
47 if (method ==
"new") {
49 string type(rhs[2].toString());
60 if (method ==
"delete") {
65 else if (method ==
"typeid") {
67 plhs[0] =
MxArray(
string(
typeid(*obj).name()));
69 else if (method ==
"initialize") {
75 else if (method ==
"process") {
79 Point tl(rhs[4].toPoint());
82 else if (method ==
"getDst") {
89 "Unrecognized operation %s", method.
c_str());
virtual void initialize(const std::vector< Point > &corners, const std::vector< Size > &sizes)
Common definitions for the stitching module.
map< int, Ptr< Timelapser > > obj_
Object container.
LIBMWMEX_API_EXTERN_C void mexLock(void)
Lock a MEX-function so that it cannot be cleared from memory.
struct mxArray_tag mxArray
Forward declaration for mxArray.
virtual const UMat & getDst()
const ConstMap< std::string, int > TimelapserTypesMap
time lapser types
Mat getMat(int flags) 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...
LIBMWMEX_API_EXTERN_C void mexUnlock(void)
Unlock a locked MEX-function so that it can be cleared from memory.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
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.
int last_id
Last object id to allocate.
virtual void process(InputArray img, InputArray mask, Point tl)