Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from skimage import data, io, filters, morphology
- from matplotlib import pyplot as plt
- IMAGE_LIST = ["samolot00.jpg", "samolot01.jpg", "samolot03.jpg", "samolot06.jpg", "samolot07.jpg", "samolot08.jpg"]
- def main():
- for i in range(1,7):
- plt.subplot(2,3,i)
- image = data.imread(IMAGE_LIST[i - 1], as_grey=True)
- edges = morphology.erosion(image)
- edges = filters.canny(edges)
- plt.axis('off')
- plt.imshow(edges, cmap='gray')
- plt.show()
- if (__name__ == "__main__"): main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement