@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
#include "ConverterMatlabToNICE.h"
@@ -232,3 +233,4 @@ bool MatlabConversion::convertMatlabToBool( const mxArray *matlabBool )
bool* ptr = (bool*) mxGetData( matlabBool );
return ptr[0];
}
+#endif
/**
* @file ConverterMatlabToNICE.h
* @author Alexander Freytag
@@ -96,3 +97,4 @@ namespace NICE {
#endif
#include "ConverterNICEToMatlab.h"
@@ -68,3 +69,4 @@ mxArray* MatlabConversion::convertVectorFromNice( const NICE::Vector & niceVecto
return matlabVector;
* @file ConverterNICEToMatlab.h
@@ -60,3 +61,4 @@ namespace MatlabConversion {
* @file GPHIKClassifierMex.cpp
@@ -723,3 +724,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
mexErrMsgTxt( errorMsg.c_str() );
* @file GPHIKRegressionMex.cpp
@@ -673,3 +674,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
* @file classHandleMtoC.h
* @brief Generic class to pass C++ objects to matlab (Interface and inline implementations)
@@ -149,3 +150,4 @@ template<class objectClass> inline void destroyObject(const mxArray *in)
#endif // _NICE_CLASSHANDLEMTOCINCLUDE
@@ -135,3 +136,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])