talda / ldsift

Local Depth SIFT and Scale Invariant Spin Image local features for 3D meshes
BSD 2-Clause "Simplified" License
14 stars 2 forks source link

mex compiler issues #2

Open ihtishamaliktk opened 6 years ago

ihtishamaliktk commented 6 years ago

compiling 'mex renderpatch.cpp ' causes D:\Libraries\SiftMesh_descriptor_toolbox\descriptor_toolbox\renderpatch.cpp(356): error C2664: 'mxArray mxCreateNumericArray_730(mwSize,const mwSize ,mxClassID,mxComplexity)': cannot convert argument 2 from 'int [3]' to 'const mwSize *'

compiling 'mex find_local_maxima_tag.cpp -largeArrayDims' causes error C2668: 'abs': ambiguous call to overloaded function

The compiler used is Microsoft Visual C++ 2017 with matlab 2018a

edit: (SOLVED) Issue 1 solved by changing from int Iin_dims[3] to mwSize Iin_dims[3]; in line 332 , where the variable type is defined. Issue 2 solved by including #include <cstdlib> in find_local_maxima_tag.cpp