Watershed function not implemented in image package
I've tried to run your algorithm now in both Octave 3.8 and 4.0 with their respect image packages. Both of these distributions tell me that, though the "watershed" function belongs to the image package, it is unimplemented in both.
Your readme mentions that you've tested this in Octave and not Matlab so I'm assuming at some point you had this running properly. What version of Octave did you use and what version of the Image package? Did you have to make any modifications? I notice a "watershed.c" file in your code but it doesn't appear to be getting used in this context.
I think I might see what's going on here. When running compile.m, I get the following error:
./mex/watershed.cpp:52:29: error: call of overloaded 'MxArray(cv::Mat&)' is ambiguous plhs[0] = MxArray(output);
It looks like the compile failed. I'm not sure how to fix this.