Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- laplacian_filter = np.array([[0,1,0], [1,-4,1], [0,1,0]]).astype('float32')
- def on_trackbar(pos):
- if pos > 0:
- img_converted = cv2.filter2D(img, -1, laplacian_filter)
- cv2.imwrite("laplace_filter.jpg", img_converted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement