Improving thresholded image
In this exercise, we'll try to reduce the noise of a thresholded image using the dilation morphological operation.
Image already loaded as
world_image.
This operation, in a way, expands the objects in the image.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Image Processing in Python
คำแนะนำการฝึกหัด
- Import the module.
- Obtain the binarized and dilated image, from the original image
world_image.
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# 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')