Commit b1438401eb6d4eee123afc537babd15047f6a5e1

Authored by Justine
1 parent f8550523

un petit clean

Images/LightImage.png deleted

484 KB

Python/PreProcessing/Filter.py deleted
... ... @@ -1,44 +0,0 @@
1   -import cv2
2   -import numpy as np
3   -from matplotlib import pyplot as plt
4   -
5   -image = cv2.imread('couleur.png')
6   -bilateral = cv2.bilateralFilter(image, 5, 75, 75)
7   -blur = cv2.blur(image, (5, 5))
8   -box = cv2.boxFilter(image, -1, (5, 5))
9   -DD = cv2.filter2D(image, -1, (5, 5))
10   -gaussian = cv2.GaussianBlur(image, (5, 5), 50)
11   -median = cv2.medianBlur(image, 5)
12   -sep = cv2.sepFilter2D(image, -1, 75, 75)
13   -
14   -kernel = np.array([[-1,-1,-1], [-1,9,-1], [-1,-1,-1]])
15   -im = cv2.filter2D(image, -1, kernel)
16   -bilateral2 = cv2.bilateralFilter(im, 5, 150, 150)
17   -
18   -plt.subplot(2,3,1),plt.imshow(image)
19   -plt.title('Original'), plt.xticks([]), plt.yticks([])
20   -plt.subplot(2,3,2),plt.imshow(bilateral)
21   -plt.title('Bilateral Filter'), plt.xticks([]), plt.yticks([])
22   -plt.subplot(2,3,3),plt.imshow(blur)
23   -plt.title('Blur'), plt.xticks([]), plt.yticks([])
24   -plt.subplot(2,3,4),plt.imshow(box)
25   -plt.title('Box Filter'), plt.xticks([]), plt.yticks([])
26   -plt.subplot(2,3,5),plt.imshow(gaussian)
27   -plt.title('Gaussian Filter'), plt.xticks([]), plt.yticks([])
28   -plt.subplot(2,3,6),plt.imshow(median)
29   -plt.title('Median Blur'), plt.xticks([]), plt.yticks([])
30   -plt.show()
31   -
32   -cv2.imshow('Sharp', im)
33   -cv2.imshow('Bilateral', bilateral2)
34   -#cv2.imshow('original', image)
35   -#cv2.imshow('bilateral filter', bilateral)
36   -#cv2.imshow('blur', blur)
37   -#cv2.imshow('box', box)
38   -#cv2.imshow('filter 2D', DD)
39   -#cv2.imshow('gaussian filter', gaussian)
40   -#cv2.imshow('median blur', median)
41   -#cv2.imshow('sep Filter 2D', sep)
42   -
43   -cv2.waitKey(0)
44   -cv2.destroyAllWindows()
Python/PreProcessing/couleur.png deleted

473 KB