Remove Noise.
plt.imshow(noisy_img) plt.title('noise image'), plt.xticks([]), plt.yticks([]) plt.show() # Create a Gaussian Filter filter_size = 11 filter_sigma = 2 filter = cv2.getGaussianKernel(filter_size, filter_sigma) filter = filter * filter.T # Apply it to remove noise smoothed = cv2.filter2D(noisy_img,