開始使用免費開始

在保留邊緣的同時降低雜訊

在這個練習中,你將為這張風景照降噪。

Landscape of a river
已預先載入為 landscape_image

因為我們希望保留影像中的邊緣,因此會使用雙邊去雜訊濾波器。

本練習屬於課程

Python 影像處理

檢視課程

練習說明

  • 從模組匯入 denoise_bilateral 函式。
  • 套用雙邊濾波進行去雜訊。
  • 顯示原始含雜訊影像與去雜訊後的影像。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Import bilateral denoising function
____

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

# Show original and resulting images
show_image(____, 'Noisy image')
show_image(____, 'Denoised image')
編輯並執行程式碼