SHARE
TWEET

Untitled

a guest Apr 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top