Ask Your Question

Revision history [back]

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?

watershed algorithm to image with grey background

EDIT: added the image
image description
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?

watershed algorithm to image with grey background

EDIT: added the image
image description
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?

click to hide/show revision 4
retagged

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?