I have a problem while implementing the marker controlled watershed in Matlab.
The input image is a binary mask which have two clustered object. An other image is an oth
This is how I would do this in Mathematica. Hope you can translate.
i1 = Binarize@Import["http://i.stack.imgur.com/qrYCL.jpg"]; marker = Binarize@Import[ "http://i.stack.imgur.com/CMI6Z.jpg"]; ImageMultiply[i1, WatershedComponents[i1, marker] // Colorize]