Click here to Skip to main content
15,895,871 members

Comments by goldpower (Top 9 by date)

goldpower 14-Dec-13 9:36am View    
Deleted
@Richard MacCutchan
i'm fix error line 29 , 48 , 49

#include "math.h"
but can't fix error line 64 ( round )
goldpower 13-Dec-13 13:56pm View    
@Richard MacCutchan
Quick start >> 4
http://groups.inf.ed.ac.uk/calvin/calvin_upperbody_detector/downloads/README.html
goldpower 13-Dec-13 6:32am View    
Deleted
@OriginalGriff
i'm edited resize.cc:

add line 5:
static inline double round(double x) { return (floor(x + 0.5)); }

edit line 36 :
struct alphainfo* ofs = (struct alphainfo*)malloc(len * sizeof(alphainfo));

edit line 71:
mset(dst,0, chan*width*dheight*sizeof(double));

but Unable to complete successfully :
>> mex -O -largeArrayDims resize.cc
resize.cc
resize.cc(86) : error C2440: 'initializing' : cannot convert from 'const mwSize *' to 'const int *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
resize.cc(99) : error C2664: 'mxCreateNumericArray_730' : cannot convert parameter 2 from 'int [3]' to 'const mwSize *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

D:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Compile of 'resize.cc' failed.

Error using mex (line 206)
Unable to

but delete -largeArrayDims :
mex -O resize.cc
complete successfully.(created resize.mexw64)
goldpower 13-Dec-13 5:20am View    
i edit resize.cc but Unable to complete successfully.

mex -O -largeArrayDims resize.cc
resize.cc
resize.cc(36) : error C2057: expected constant expression
resize.cc(36) : error C2466: cannot allocate an array of constant size 0
resize.cc(36) : error C2133: 'ofs' : unknown size
resize.cc(70) : error C3861: 'bzero': identifier not found
resize.cc(85) : error C2440: 'initializing' : cannot convert from 'const mwSize *' to 'const int *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
resize.cc(95) : error C3861: 'round': identifier not found
resize.cc(96) : error C3861: 'round': identifier not found
resize.cc(98) : error C2664: 'mxCreateNumericArray_730' : cannot convert parameter 2 from 'int [3]' to 'const mwSize *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

D:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Compile of 'resize.cc' failed.

Error using mex (line 206)
Unable to complete successfully.
goldpower 13-Dec-13 5:08am View    
@OriginalGriff8
not work !!