当前位置:网站首页>图像批处理高斯滤波降噪+峰值信噪比计算
图像批处理高斯滤波降噪+峰值信噪比计算
2022-07-26 01:35:00 【明月醉窗台】
批量图像针对不同大小的高斯噪声滤波
1.简介
去噪方法:针对已知的图像及噪声强度(标准差分别为10,20,30,40,50,75,100),针对不同强度的高斯噪声采用自适应高斯滤波器对原图进行降噪,对于标准差较小的噪声选用低强度的高斯滤波,而标准差较大时则采用强度较高的滤波核进行降噪,所设计滤波器采用高斯滤波核同与原图进行卷积操作达到降噪目的。
2.实现
采用Matlab语言进行算法实现,并将滤波结果保存到原文件夹下,信噪比参数并入图像名字以便参考,算法实现如下:
name={
'Lena','Monarch','House'};
D={
'10','20','30','40','50','75','100'};
for i=1:length(name)
for j=1:length(D)
[name{
i},D{
j}]
path=['testimages\\',[name{
i},D{
j}],'.png'];
img=imread(path);
sigma=str2num(D{
j});
W = fspecial('gaussian',[sigma,sigma],1);
result = imfilter(img, W,'conv');
psnr=getPSNR(img,result);
imwrite(result,['testimages\\',[name{
i},D{
j}],'-psnr-',num2str(psnr),'.png']);
end
end
function [psnr]=getPSNR(src,dst)
diff=src-dst;
MSE= sum(diff(:).*diff(:))/prod(size(src));
psnr = 10*log10(255^2/MSE);
end
3.效果:


求解PSNR公式,所设计滤波器降噪效果评价如下表:
边栏推荐
- Ideal Path(UVA - 1599)
- [data mining] differences, advantages and disadvantages between generative model and discriminant model
- Docker advanced -mysql master-slave replication
- Linear relationship between vectors
- 2022年最新北京建筑八大员(材料员)模拟考试试题及答案
- 网络文件传输之零拷贝
- 网络性能评估工具 ping/mtr
- Prime Ring Problem
- Special topic of distributed micro service e-commerce (I) - Project Introduction
- "Weilai Cup" 2022 Niuke summer multi school training camp 2 h.[take the elevator] maintenance section
猜你喜欢
随机推荐
iNFTnews | 假如这是元宇宙20年后的样子
C语言中的整型数据类型(你真的了解吗)
FastJson 处理泛型
Leetcode537. 复数乘法(可以,已解决)
Browser development and use skills
Easyrecovery15 data recovery software with high recovery rate and high download volume
机器学习:贝叶斯网络
What should I do when my blog is attacked by hackers?
Arthas watch command to view the properties of objects in the array
Codeforces Round #810 (Div. 2)A~C
Modify CSV
The second China rust developer conference is coming, and the complete agenda has been exposed!
Big view +500 cases, software teams should improve R & D efficiency in this way
Zombie's treasure test (enumeration)
Google gson usage details
8、学习MySQL 创建数据表
poj1521
y77.第四章 Prometheus大厂监控体系及实战 -- prometheus的服务发现机制(八)
“蔚来杯“2022牛客暑期多校训练营2 H.[Take the Elevator] 维护线段
"Weilai Cup" 2022 Niuke summer multi school training camp 2 i.[let fat tension] matrix multiplication j.[link with arithmetic progression] linear regression



![[secsha concept] large and small end](/img/1e/d295a6eb7ecaccb53ed9f7d2234956.png)




