Aan de slagGa gratis aan de slag

Reducing noise while preserving edges

In this exercise, you will reduce the noise in this landscape picture.

Landscape of a river
Preloaded as landscape_image.

Since we prefer to preserve the edges in the image, we'll use the bilateral denoising filter.

Deze oefening maakt deel uit van de cursus

Image Processing in Python

Cursus bekijken

Oefeninstructies

  • Import the denoise_bilateral function from its module.
  • Apply bilateral filter denoising.
  • Show the original noisy and the resulting denoised image.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Import bilateral denoising function
____

# Apply bilateral filter denoising
denoised_image = ____(____, 
                                   multichannel=____)

# Show original and resulting images
show_image(____, 'Noisy image')
show_image(____, 'Denoised image')
Code bewerken en uitvoeren