1 | initial version |
I don't really understand the question, but it seems that you want to eliminate the fine vertical white lines to be able to compare the contours.
You might try a 3x3 median filter to eliminate them (medianblur(gray,filtered,3)
) It will delete at least the vertical lines.
Another solution would be to filter out some strong components from the fourier fransform of the image.