CommencerCommencer gratuitement

Blurring to reduce noise

In this exercise you will reduce the sharpness of an image of a building taken during a London trip, through filtering.

Building in Lodon
Image loaded as building_image.

Cet exercice fait partie du cours

Image Processing in Python

Afficher le cours

Instructions

  • Import the Gaussian filter.
  • Apply the filter to the building_image, set the multichannel parameter to the correct value.
  • Show the original building_image and resulting gaussian_image.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Import Gaussian filter 
____

# Apply filter
gaussian_image = ____

# Show original and resulting image to compare
show_image(____, "Original")
____(____, "Reduced sharpness Gaussian")
Modifier et exécuter le code