Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. def main():
  2. #definindo as matrizes de filtro
  3. media = np.array([[1,1,1],
  4. [1,1,1],
  5. [1,1,1]], dtype=np.float32)
  6.  
  7. gauss = np.array([[1,2,1],
  8. [2,4,2],
  9. [1,2,1]], dtype=np.float32)
  10.  
  11. horizontal = np.array([[-1,0,1],
  12. [-2,0,2],
  13. [-1,0,1]], dtype=np.float32)
  14.  
  15. vertical = np.array([[-1,-2,-1],
  16. [0,0,0],
  17. [1,2,1]], dtype=np.float32)
  18.  
  19. laplacian = np.array([[0,-1,0],
  20. [-1,4,-1],
  21. [0,-1,0]], dtype=np.float32)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement