Get startedGet started for free

Improving thresholded image

In this exercise, we'll try to reduce the noise of a thresholded image using the dilation morphological operation.

World map
Image already loaded as world_image.

This operation, in a way, expands the objects in the image.

This exercise is part of the course

Image Processing in Python

View Course

Exercise instructions

  • Import the module.
  • Obtain the binarized and dilated image, from the original image world_image.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Import the module
from skimage import ____

# Obtain the dilated image 
dilated_image = ____

# See results
show_image(world_image, 'Original')
show_image(dilated_image, 'Dilated image')
Edit and Run Code