on-internet
← Community

Refine segmentation mask based on contours of image

Stack Overflow ·

I have an image for which I have the green border as the segmentation mask's outline. I'm looking to refine this outline based on contours found on the original image, to get a mask like the in 2nd image - where the edges of the hair are more refined. I've tried combinations of dilation & erosion of the segmentation mask, but it didn't feel like a generic solution - since it involves manually tuning the kernel size. Are there better approaches?

Comments

Sign in or sign up to comment and upvote.

No comments yet.