Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. laplacian_filter = np.array([[0,1,0], [1,-4,1], [0,1,0]]).astype('float32')
  2.  
  3.  
  4.  
  5. def on_trackbar(pos):
  6.     if pos > 0:
  7.         img_converted = cv2.filter2D(img, -1, laplacian_filter)
  8.         cv2.imwrite("laplace_filter.jpg", img_converted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement