22 const char* fieldnames[] = {
"R1",
"R2",
"t"};
MxArray toStruct(const Mat &R1, const Mat &R2, const Mat &t)
Create a new MxArray from decomposed essential matrix.
void decomposeEssentialMat(InputArray E, OutputArray R1, OutputArray R2, OutputArray t)
struct mxArray_tag mxArray
Forward declaration for mxArray.
void set(mwIndex index, const T &value)
Template for numeric array element write accessor.
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.
static MxArray Struct(const char **fields=NULL, int nfields=0, mwSize m=1, mwSize n=1)
Create a new struct array.
Global constant definitions.