Computervisionminiproject, Opencv, Image Processing.
filter2D, which has inputs: (grayscale image, bit-depth, kernel) filtered_image = cv2.Laplacian(img, ksize=3, ddepth=cv2.CV_16S) # converting back to uint8 filtered_image = cv2.convertScaleAbs(filtered_image) # Plot outputs (fig, (ax1, ax2)) = plt.subplots(1, 2, figsize=(15, 15))