For whatever reason, Matlab 2008a doesn’t like the mex files that come with the steerable pyramid toolbox. If you try to recompile the mex files with Matlab’s built-in compiler, you will find that it crashes whenever you call buildSpyr. You can do the following to get it to work:
- Install Visual C++ express edition.
- Restart your computer
- In Matlab, type mex -setup. Ask it to locate installed compilers. It should find the Microsoft C++ compiler in C:\Program Files\Microsoft Visual Studio 9.0. Select it, and it should update the options file.
- Change your Matlab working directory to the MEX folder of the steerable pyramid toolbox. Delete all of the .mex files you see in there.
- Type the following commands in the Matlab command window:
- mex corrDn.c wrap.c convolve.c edges.c
- mex upConv.c wrap.c convolve.c edges.c
- mex pointOp.c
- mex histo.c
- mex range2.c
- Now add the MEX folder to your Matlab path, and the toolbox should use the new mex files which appear to work fine.