Morphological operations merges lines with edges of pictures
问题 I have an image with nearly constant lines in it and I use algorythm with morphological operations to clear them out of the image. The thing is, that morphological opening or closing merges the lines with the edges of the image instead of only just melting the neighbor contours. I need only neighbor contours melted with morphological operations and to avoid that line merging with edge, because later I am unable to clear that merged peace of the line out of the image. The problem stays even if