首页 > 行业资讯 > 【图像去噪】基于中值、均值、维纳、小波多种滤波实现图像去噪含Matlab源码

【图像去噪】基于中值、均值、维纳、小波多种滤波实现图像去噪含Matlab源码

时间:2022-05-01 来源: 浏览:

【图像去噪】基于中值、均值、维纳、小波多种滤波实现图像去噪含Matlab源码

天天Matlab 天天Matlab
天天Matlab

TT_Matlab

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,完整matlab代码或者程序定制加qq1575304183。

收录于合集 #图像处理matlab源码 559个

1 简介

通过对含高斯噪声的图像进行分析和研究,采用中值、均值、维纳、小波来进行图像去噪。

2 部分代码

function vector = huffdecode(zipped, info, image) % 函数对输入矩阵vector进行Huffman解码,返回解压后的图像数据 if ~isa(zipped, ’uint8’) error(’input argument must be be a uint8 vector’); end %产生0,1序列,每位占一个字节 len = length(zipped); string = repmat(uint8(0), 1, len.*8); bitindex = 1:8; for index = 1:len string(bitindex + 8.*(index-1)) = uint8(bitget(zipped(index), bitindex)); end string = logical(string(:)’); len = length(string); string ((len-info.pad+1):end)=[]; len = length(string); %开始解码 weights = 2.^(0:51); vector = repmat(uint8(0), 1, info.length); vectorindex = 1; codeindex = 1; code = 0; for index = 1:len code = bitset(code, codeindex, string(index)); codeindex = codeindex+1; byte = decode(bitset(code, codeindex), info); if byte > 0 vector(vectorindex) = byte-1; codeindex = 1; code = 0; vectorindex = vectorindex + 1; end end vector = reshape(vector, info.rows, info.cols); %函数decode返回码字对应的符号 function byte = decode(code, info) byte = info.huffcodes(code);

3 仿真结果

4 参考文献

[1]彭姝姝. 基于均值滤波和小波变换的图像去噪[J]. 现代计算机, 2019(12):6.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

版权:如无特殊注明,文章转载自网络,侵权请联系cnmhg168#163.com删除!文件均为网友上传,仅供研究和学习使用,务必24小时内删除。
相关推荐