Kavindu99 commited on
Commit
0d73d25
·
1 Parent(s): ddb49c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -21
app.py CHANGED
@@ -17,27 +17,7 @@ def app(img, filter):
17
  [-1,0,1],
18
  [-1,0,1]])
19
 
20
- sobel_horizontal = np.array([[-1,-1,11],
21
- [ 0, 0, 0],
22
- [ 1, 1, 1]])
23
-
24
- laplacian = np.array([[ 0,-1, 0],
25
- [-1, 5,-1],
26
- [ 0,-1, 0]])
27
-
28
- average = np.array([[1/9,1/9, 1/9],
29
- [1/9,1/9, 1/9],
30
- [1/9,1/9, 1/9]])
31
-
32
-
33
- weighted_average = np.array([[1/16,2/16, 1/16],
34
- [2/16,4/16, 2/16],
35
- [1/16,2/16, 1/16]])
36
- sobel_verticle = np.array([[-1,0,1],
37
- [-1,0,1],
38
- [-1,0,1]])
39
-
40
- sobel_horizontal = np.array([[-1,-1,11],
41
  [ 0, 0, 0],
42
  [ 1, 1, 1]])
43
 
 
17
  [-1,0,1],
18
  [-1,0,1]])
19
 
20
+ sobel_horizontal = np.array([[-1,-1,-1],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  [ 0, 0, 0],
22
  [ 1, 1, 1]])
23