I am trying to segment an image containing a mole using grabcut algorithm with 8 iterations.
The result I get is this. I understand that the white space is causing problems.

The rectangle affects later stages of the image processing by detecting false contours. It should be detecting contours on the mole boundary not the rectangle.

How can I solve this problem? Please help.
↧