MATLAB: Trouble with built-in MEX file (in Image Processing toolbox)

bwmorphimage processingImage Processing Toolboxmexmorphology

When I use BWMORPH (in the Image Processing toolbox) I get the error "undefined function `applylutc` for input arguments of type `logical` ". The BWMORPH command only supports logical, so this looks like a bad command name. The file applylutc.mexw64 still exists in its default folder (C:\Program Files\MATLAB\R2015aSP1\toolbox\images\images\private). Why the error?
I first got the error while using Matlab 2014a, but downloaded 2015aSP1 and still get the same error even after the new install.

Best Answer

bwmorph() works fine for me. What are you passing it? In general, functions that are preceded with "im" work for grayscale and/or color images, while those starting with "bw" for for only logical images - only pure black and pure white, hence the prefix bw. So I'm not sure why you think it's an inappropriate name. For example imerode() is appropriate since it not only works with binary, logical images, it also works with grayscale images (to produce a local minimum image).
If you can't even get it to run the examples from the help, then you should try "restoredefaultpath" and if that doesn't work, reinstall. If it still doesn't work, call tech support and ask for Installation. It will be free I believe, since it didn't install right.
Related Question