alanlukezic / csr-dcf

Discriminative Correlation Filter with Channel and Spatial Reliability
226 stars 73 forks source link

Wrong type for dim? #10

Open TobiasBoettger opened 6 years ago

TobiasBoettger commented 6 years ago

https://github.com/alanlukezic/csr-dcf/blob/469959d14638d1b57014451dc254bda39df78d42/mex_src/hog/gradientMex.cpp#L336

argument of type "const int " is incompatible with parameter of type "const mwSize={size_t={unsigned __int64}} " mxSetData(M,*I); mxSetDimensions(M,dims,3); return M;

Should "dim" not rather be a "const unsigned __int64" (which is what mxSetDimensions and mxGetDimensions) expects?

TSSSS4 commented 5 years ago

csr-dcf/mex_src/hog/gradientMex.cpp

Line 336 in 469959d

const int dims; int nDims; argument of type "const int " is incompatible with parameter of type "const mwSize={size_t={unsigned __int64}} " mxSetData(M,I); mxSetDimensions(M,dims,3); return M;

Should "dim" not rather be a "const unsigned __int64" (which is what mxSetDimensions and mxGetDimensions) expects?

modify the type of "dims": const size_t dims;