1 简介 图像在采集和传输过程中可能受到很多外界条件的污染,因此,为了保证图像提供给我们的信息比较准确,需要对图像进行去噪处理.通过Matlab软件分别用高通、低通、带通、方向多种
1 简介
图像在采集和传输过程中可能受到很多外界条件的污染,因此,为了保证图像提供给我们的信息比较准确,需要对图像进行去噪处理.通过Matlab软件分别用高通、低通、带通、方向多种滤波器对需要的图像进行去噪处理,同时比较几种去噪方法的优缺点,找到对图像质量影响最小,且去噪性能最好的方法.
2 部分代码
function PQ = paddedsize(AB, CD, PARAM)%PADDEDSIZE Computes padded sizes useful for FFT-based filtering.
% PQ = PADDEDSIZE(AB), where AB is a two-element size vector,
% computes the two-element size vector PQ = 2*AB.
%
% PQ = PADDEDSIZE(AB, 'PWR2') computes the vector PQ such that
% PQ(1) = PQ(2) = 2^nextpow2(2*m), where m is MAX(AB).
%
% PQ = PADDEDSIZE(AB, CD), where AB and CD are two-element size
% vectors, computes the two-element size vector PQ. The elements
% of PQ are the smallest even integers greater than or equal to
% AB + CD - 1.
%
% PQ = PADDEDSIZE(AB, CD, 'PWR2') computes the vector PQ such that
% PQ(1) = PQ(2) = 2^nextpow2(2*m), where m is MAX([AB CD]).
% Copyright 2002-2004 R. C. Gonzalez, R. E. Woods, & S. L. Eddins
% Digital Image Processing Using MATLAB, Prentice-Hall, 2004
% $Revision: 1.5 $ $Date: 2003/08/25 14:28:22 $
if nargin == 1
PQ = 2*AB;
elseif nargin == 2 & ~ischar(CD)
PQ = AB + CD - 1;
PQ = 2 * ceil(PQ / 2);
elseif nargin == 2
m = max(AB); % Maximum dimension.
% Find power-of-2 at least twice m.
P = 2^nextpow2(2*m);
PQ = [P, P];
elseif nargin == 3
m = max([AB CD]); % Maximum dimension.
P = 2^nextpow2(2*m);
PQ = [P, P];
else
error('Wrong number of inputs.')
end
3 仿真结果
4 参考文献
[1]张宏伟. 基于MATLAB的图像去噪方法的研究与实现[J]. 大庆师范学院学报, 2016, 36(3):4.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。