I run the file srm_demo.m and these eroors came up
Undefined function or method 'srm_boundarygradient' for input arguments of type 'double'.
Error in ==> srm at 125
bgradient = sparse(srm_boundarygradient(labels, nlabels, normgradient));
Error in ==> srm_demo at 8
Can you please tell me how to fix this. I am in very urgent need of help. And also, thanks for the code.
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!