The Rice Wavelet Toolbox (RWT) is a collection of Matlab M-files and C MEX-files for 1D and 2D wavelet and filter bank design, analysis, and processing. The toolbox provides tools for denoising and interfaces directly with our Matlab code for wavelet domain hidden Markov models and wavelet regularized deconvolution.
Hi, I tried to use the RWT, however I have got some problem when I need to compile the file. To compile the file, I put the ‘bin’ as subdirectory in my Matlab as explained in the installation guide. Below are the error that I got from the Matlab
compile
-> Default options filename found in C:\Users\mmm112\AppData\Roaming\MathWorks\MATLAB\R2012b
Hi, I tried to use the RWT, however I have got some problem when I need to compile the file. To compile the file, I put the ‘bin’ as subdirectory in my Matlab as explained in the installation guide. Below are the error that I got from the Matlab
--> cl -I../lib/inc /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\mdwt.obj -I"C:\Program Files\MATLAB\R2012b\extern\include" -I"C:\Program Files\MATLAB\R2012b\simulink\include" /O2 /Oy- /DNDEBUG ..\mex\mdwt.c
mdwt.c d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(44) : warning C4005: 'max' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max' d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(45) : warning C4005: 'min' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(855) : see previous definition of 'min'
--> cl -I../lib/inc /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\dwt.obj -I"C:\Program Files\MATLAB\R2012b\extern\include" -I"C:\Program Files\MATLAB\R2012b\simulink\include" /O2 /Oy- /DNDEBUG ..\lib\src\dwt.c
dwt.c ../lib/inc\rwt_platform.h(44) : warning C4005: 'max' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max' ../lib/inc\rwt_platform.h(45) : warning C4005: 'min' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(855) : see previous definition of 'min'
--> cl -I../lib/inc /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\mmm112\AppData\Local\Temp\mex_MJVk5t\init.obj -I"C:\Program Files\MATLAB\R2012b\extern\include" -I"C:\Program Files\MATLAB\R2012b\simulink\include" /O2 /Oy- /DNDEBUG ..\lib\src\init.c
init.c d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(44) : warning C4005: 'max' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max' d:\phd research\004 programming & design\001 matlab\004 image processing\rwt-master\rwt-master\lib\inc\rwt_platform.h(45) : warning C4005: 'min' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(855) : see previous definition of 'min' ..\lib\src\init.c(97) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data ..\lib\src\init.c(171) : error C2143: syntax error : missing ';' before 'type' ..\lib\src\init.c(172) : error C2065: 'argNumL' : undeclared identifier ..\lib\src\init.c(173) : error C2065: 'argNumL' : undeclared identifier ..\lib\src\init.c(187) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ..\lib\src\init.c(195) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: Compile of '..\lib\src\init.c' failed.
Error using mex (line 206) Unable to complete successfully.
Error in compile (line 13) mex -v -largeArrayDims ../mex/mdwt.c ../lib/src/dwt.c ../lib/src/init.c ../lib/src/platform.c -I../lib/inc -outdir ../bin
I really appreciate if you could help me on this. Thanks in advance!