I have an image and after I use Canny Edge detection, I want to delete the outermost edge. I can't use a mask as the image will change.
I want to delete the outermost edge so that I am left with only one edge, the outline of the cloud.
This is the current code:
import numpy as np
import cv2
import matplotlib.cm as cm
import matplotlib.pyplot as plt
img = cv2.imread('cloud.png',0)
edges = cv2.Canny(img,100,200)
plt.subplot(121)
plt.imshow(img,cmap = 'gray')
plt.title("Original Image")
plt.xticks([])
plt.yticks([])
plt.subplot(122)
plt.imshow(edges,cmap = 'gray')
plt.title("Edge")
plt.xticks([])
plt.yticks([])
plt.show()


