I have used Canny edge detector to detect the edges of an image. The results are shown below:
I would like to remove everything except for the outline of the edges. The desired output is shown below:
I have tried a series of morphological transformations (specifically eroding/dilating and opening/closing), however, these transformations also removed the outline of the image. I tried using median blurring, but that also removed the outline edges.