How to run resize.cc on Linux?
이전 댓글 표시
Hi, I am doing face recognition with ZR model(https://www.ics.uci.edu/~xzhu/face/). Everything works fine in Windows but in Linux I get an error in resize.cc file:
Error using mex
resize.cc: In function ?mxArray* resize(const mxArray*,
const mxArray*)?:
resize.cc:89:43: error: cannot convert ?const size_t* {aka const long unsigned int*}? to ?const int*? in initialization
const int *sdims = mxGetDimensions(mxsrc);
^
resize.cc:102:73: error: cannot convert ?int*? to ?const size_t* {aka const long unsigned int*}? for argument ?2? to ?mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID,
mxComplexity)?
mxArray *mxdst = mxCreateNumericArray(3, ddims, mxDOUBLE_CLASS, mxREAL);
What is the reason? How can I fix it?
채택된 답변
추가 답변 (1개)
Nicole Poltorak
2017년 5월 18일
카테고리
도움말 센터 및 File Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!