日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter

發布時間:2025/3/21 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

實驗要求:

Objective:
To understand the non-linearity of median filtering and its noise suppressing ability, especially for the pepper-noises, the salt-noises and the pepper-and-salt noises.
Main requirements:
Ability of programming with C, C++, or Matlab.
Instruction manual:
(a) Modify the program that you developed in Project 03-04 to perform 3 x 3 median filtering.
(b) Download Fig. 5.7(a) and add salt-and-pepper noise to it, with Pa = Pb = 0.2.
(c) Apply median filtering to the image in (b). Explain the major differences between your result and Fig. 5.10(b).

這個實驗中要使用中值濾波器消除椒鹽噪聲。思路很簡單,我們可以先調用前一個實驗中使用的產生噪聲的程序來產生椒鹽噪聲,然后調用中值濾波的函數進行中值濾波即可。

給出原始圖片:

實驗代碼:

% PROJECT 05-02 Noise Reduction Using a Median Filter close all; clc; clear all;% img = imread('Fig5.07(a).jpg'); figure; subplot(1,3,1); imshow(img); title('original image');% img_n = imnoise(img, 'salt & pepper', 0.2); subplot(1,3,2); imshow(img_n); title('image with salt & pepper noise');% img_f = medfilt2(img_n); subplot(1,3,3); imshow(img_f); title('image through median filter');

實驗結果:

很明顯地,可以看到中值濾波器對椒鹽噪聲的濾波效果很好,能消除大部分的此類噪聲。

總結

以上是生活随笔為你收集整理的数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。