Remove holes in an image without affecting the borders

asked 2018-09-27 06:26:10 -0600

infoclogged gravatar image

Following is an example image and I would like to remove all the black part in the image with white. I can use a median filter to do it, but it will correspondingly also affect the borders.

Is there any idea how to do it?

image description

edit retag flag offensive close merge delete

Comments

1

Possible solution here?

yancey gravatar imageyancey ( 2018-09-27 10:26:22 -0600 )edit

great solution ! thank you for the link.

infoclogged gravatar imageinfoclogged ( 2018-09-27 10:30:49 -0600 )edit