数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter
来源:互联网 发布:传至大数据3期百度云 编辑:程序博客网 时间:2024/06/05 03:17
实验要求:
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 Filterclose 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
- 数字图像处理实验(12):PROJECT 05-03,Periodic Noise Reduction Using a Notch Filter
- 噪声去除的中值滤波方法(Noise Reduction Using a Median Filter)
- Noise Reduction Using a Median Filter(噪声去除的中值滤波方法)
- 数字图像处理实验(10):PROJECT 05-01 [Multiple Uses],Noise Generators
- 数字图像处理实验(8):PROJECT 04-04,Highpass Filtering Using a Lowpass Image
- 数字图像处理实验(13):PROJECT 05-04,Parametric Wiener Filter
- 数字图像处理实验(7):PROJECT 04-03 , Lowpass Filtering
- 数字图像处理实验(9):PROJECT 04-05,Correlation in the Frequency Domain
- 数字图像处理实验(1):PROJECT 02-01, Image Printing Program Based on Halftoning
- 数字图像处理实验(3):PROJECT 02-03, Zooming and Shrinking Images by Pixel Replication
- 数字图像处理实验(6):PROJECT 04-02,Fourier Spectrum and Average Value
- 数字图像处理实验(15):PROJECT 06-02,Pseudo-Color Image Processing
- 数字图像处理实验(2):PROJECT 02-02, Reducing the Number of Gray Levels in an Image
- 数字图像处理实验(4):PROJECT 02-04 [Multiple Uses],Zooming and Shrinking Images by Bilinear Interpolation
- 数字图像处理实验(5):PROJECT 04-01 [Multiple Uses],Two-Dimensional Fast Fourier Transform
- 数字图像处理实验(14):PROJECT 06-01,Web-Safe Colors
- 数字图像处理实验(16):PROJECT 06-03,Color Image Enhancement by Histogram Processing
- Building Apps with Content Sharing
- css3 flexbox layout(弹性布局)完全解析
- 使用python Tkinter制作一个可以生成重复文本片段的小工具
- 解决Maven更新后错误Dynamic Web Module 3.0 requires Java 1.6 or newer
- sdut-离散题目10
- 数字图像处理实验(11):PROJECT 05-02,Noise Reduction Using a Median Filter
- JVM性能优化
- Ray Tracing Scenes Collection
- HTML 一些基本的标签
- Vim编辑器的退出
- Javascript的继承方式详解
- 面向对象基础三种基本设计模式
- sdut-离散题目11
- python多线程模块thread