For all of you having trouble with
srm_boundarygradient or any other of the mex-files: you are probably running Matlab in x64-mode and therefore Matlab will not run the included 32bit files.
On Windows the easiest will be to install a gcc-toolchain since compilation with MSVC seems to fail. A nice how-to has been posted here: http://stackoverflow.com/questions/8552580/using-gccmingw-as-matlabs-mex-compiler
Once I changed the toolchain, mex64-files were successfully created and the code works flawlessly. Thank you!
28 Nov 2013
Segmentation by growing a region from seed point using intensity mean measure