I have the following image:
and I would like to fill in its contours (i.e. I would like to gap fill the lines in this image).
I have tried a morphological closing, but using a rectangular kernel of size 3x3 with 10 iterations does not fill in the entire border.