开始使用免费开始使用

航拍图像

在本练习中,您将提升一张城市航拍图像的质量。该图像对比度较低,因此我们无法清晰分辨其中的所有元素。

Aerial image, airport taken from the air
图像已加载为 image_aerial

为此,我们将使用标准的直方图均衡化技术。

本练习是课程的一部分

Python 图像处理

查看课程

练习说明

  • 从 scikit-image 中导入所需的模块。
  • 使用刚才导入模块中的直方图均衡化函数。
  • 显示得到的图像。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Import the required module
from ____ import ____

# Use histogram equalization to improve the contrast
image_eq =  ____

# Show the original and resulting image
show_image(image_aerial, 'Original')
show_image(____, 'Resulting image')
编辑并运行代码