In [12]:
# Let's now apply a Gaussian filter to this.
# This may be confusing for beginners.
# We have one Gaussian distribution to create a noise
# and other Gaussian function to create a filter, sometimes also called a kernel.
# They should be treated completely independently.

filtered_image = cv2.GaussianBlur(noisy_image, (3,3), 3)
cv2.imshow("Gaussian noise severe - filtered", filtered_image)
cv2.waitKey()

Out[12]:
-1
In [13]:
filtered_image = cv2.GaussianBlur(noisy_image1, (7,7), 3)
cv2.imshow("Gaussian noise mild - filtered", filtered_image)
cv2.waitKey()

Out[13]:
-1