watershed algorithm to image with grey background
I have an image with grey backgound
to which i want to apply watershed algorithm.
But as I am trying to threshold the grey scaled image, the background is also is being converted to white(binary+otsu thresholding).
I thought of applying the grabcut algorithm to my image first then apply watershed.
I have no idea how to implement this.
Any help in this regard would be appreciated?
please post the code you tried and the sample image
@sturkmen I have added a sample image
@chetanreddy did you delete your question after accepting answer?