22 const Vec3d& eulerAngles)
24 const char* fieldnames[] = {
"Qx",
"Qy",
"Qz",
"eulerAngles"};
29 s.
set(
"eulerAngles", eulerAngles);
60 plhs[2] =
toStruct(Qx, Qy, Qz, eulerAngles);
Vec3d RQDecomp3x3(InputArray src, OutputArray mtxR, OutputArray mtxQ, OutputArray Qx=noArray(), OutputArray Qy=noArray(), OutputArray Qz=noArray())
struct mxArray_tag mxArray
Forward declaration for mxArray.
void set(mwIndex index, const T &value)
Template for numeric array element write accessor.
InputOutputArray noArray()
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.
MxArray toStruct(const Mat &Qx, const Mat &Qy, const Mat &Qz, const Vec3d &eulerAngles)
Create a new MxArray from decomposed matrix.
Global constant definitions.