数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter
2017-05-26 23:47
691 查看
实验要求:
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).
这个实验中要使用中值滤波器消除椒盐噪声。思路很简单,我们可以先调用前一个实验中使用的产生噪声的程序来产生椒盐噪声,然后调用中值滤波的函数进行中值滤波即可。
给出原始图片:
实验代码:
实验结果:
很明显地,可以看到中值滤波器对椒盐噪声的滤波效果很好,能消除大部分的此类噪声。
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');
实验结果:
很明显地,可以看到中值滤波器对椒盐噪声的滤波效果很好,能消除大部分的此类噪声。
相关文章推荐
- 数字图像处理实验(12):PROJECT 05-03,Periodic Noise Reduction Using a Notch Filter 标签: 图像处理MATLAB 2017-0
- 数字图像处理实验(12):PROJECT 05-03,Periodic Noise Reduction Using a Notch Filter
- 数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter 标签: 图像处理MATLAB 2017-05-26 23:
- 数字图像处理实验(13):PROJECT 05-04,Parametric Wiener Filter
- 噪声去除的中值滤波方法(Noise Reduction Using a Median Filter)
- Noise Reduction Using a Median Filter(噪声去除的中值滤波方法)
- 数字图像处理实验(13):PROJECT 05-04,Parametric Wiener Filter 标签: 图像处理MATLAB 2017-05-27 10:59
- 数字图像处理实验(1):PROJECT 02-01, Image Printing Program Based on Halftoning 标签: 图像处理MATLAB 2017-04-2
- 数字图像处理实验(2):PROJECT 02-02, Reducing the Number of Gray Levels in an Image 标签: 图像处理MATLAB 2017-
- 数字图像处理实验(1):PROJECT 02-01, Image Printing Program Based on Halftoning
- 数字图像处理实验(2):PROJECT 02-02, Reducing the Number of Gray Levels in an Image
- 数字图像处理实验(9):PROJECT 04-05,Correlation in the Frequency Domain 标签: 图像处理MATLAB 2017-05-25 10:14
- 数字图像处理实验(3):PROJECT 02-03, Zooming and Shrinking Images by Pixel Replication 标签: 图像处理matlab 20
- 数字图像处理实验(9):PROJECT 04-05,Correlation in the Frequency Domain
- 数字图像处理实验(3):PROJECT 02-03, Zooming and Shrinking Images by Pixel Replication
- 数字图像处理实验(15):PROJECT 06-02,Pseudo-Color Image Processing 标签: 图像处理MATLAB 2017-05-27 20:53
- 数字图像处理实验(15):PROJECT 06-02,Pseudo-Color Image Processing
- 数字图像处理实验(10):PROJECT 05-01 [Multiple Uses],Noise Generators
- 数字图像处理实验(6):PROJECT 04-02,Fourier Spectrum and Average Value 标签: 图像处理MATLABfft 2017-05-07 23:1
- 数字图像处理实验(6):PROJECT 04-02,Fourier Spectrum and Average Value