MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Image Processing in Python

Lihat Kursus

Petunjuk latihan

  • 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.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Import Gaussian filter 
____

# Apply filter
gaussian_image = ____

# Show original and resulting image to compare
show_image(____, "Original")
____(____, "Reduced sharpness Gaussian")
Edit dan Jalankan Kode