Hello Mr.Alan Lukežič,
When i compiled the Compile.m function ,something wrong like this happened
Building with 'Microsoft Visual C++ 2015'.
Error using mex
gradientMex.cpp
C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(329):
error C2664: “int mxSetDimensions_730(mxArray ,const size_t ,std::size_t)”:
cannot convert from“const int [3]”to“const size_t ”
C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(329):
note: Irrelevant to the type of direction;Conversion requires reinterpret_cast, C style conversion, or function style conversion
C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(339):
warning C4267: “=”: From "size_t" to "int", may lose data
C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(339):
error C2440: “=”: cannot convert from“const size_t ”to“const int *”
C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(339):
note: Irrelevant to the type of direction;Conversion requires reinterpret_cast, C style conversion, or function style conversion
Error in compile (line 9)
mex gradientMex.cpp
the platform is MATLAB 2017b + VS2015+Opencv 2.4.13
so what should i do to fix it?
thank you in advance
Hello Mr.Alan Lukežič, When i compiled the Compile.m function ,something wrong like this happened Building with 'Microsoft Visual C++ 2015'. Error using mex gradientMex.cpp C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(329): error C2664: “int mxSetDimensions_730(mxArray ,const size_t ,std::size_t)”: cannot convert from“const int [3]”to“const size_t ” C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(329): note: Irrelevant to the type of direction;Conversion requires reinterpret_cast, C style conversion, or function style conversion C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(339): warning C4267: “=”: From "size_t" to "int", may lose data C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(339): error C2440: “=”: cannot convert from“const size_t ”to“const int *” C:\Users\Administrator\Desktop\csr-dcf-master\mex_src\hog\gradientMex.cpp(339): note: Irrelevant to the type of direction;Conversion requires reinterpret_cast, C style conversion, or function style conversion
Error in compile (line 9) mex gradientMex.cpp the platform is MATLAB 2017b + VS2015+Opencv 2.4.13 so what should i do to fix it? thank you in advance