当前位置:网站首页>图像批处理高斯滤波降噪+峰值信噪比计算
图像批处理高斯滤波降噪+峰值信噪比计算
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公式,所设计滤波器降噪效果评价如下表:
边栏推荐
- 网络文件传输之零拷贝
- I want to know how much the Commission is for opening an account. Is it safe to open an account on your mobile phone
- What is informatization? What is digitalization? What are the connections and differences between the two?
- [ickim 2022] the Fourth International Conference on knowledge and information management
- Test questions and answers of the latest Beijing Construction eight (materialman) mock examination in 2022
- Speech comprehension - structural analysis exercise of fragment reading
- 服务器可用资源查询脚本
- 格式化JS代码,调试JS代码
- Nodejs builds cloud native microservice applications based on dapr, a quick start guide from 0 to 1
- What should I do when my blog is attacked by hackers?
猜你喜欢
随机推荐
Huawei wireless device WDS configuration command
C语言中的整型数据类型(你真的了解吗)
Stack Title: basic calculator
Tutorial on principles and applications of database system (054) -- MySQL query (16): usage of date time function
Understand Linglong platform unified access service from simple to deep Monet
“蔚来杯“2022牛客暑期多校训练营2 I.[let fat tension] 矩阵乘法 J.[Link with Arithmetic Progression]线性回归
In spark SQL, date is used to display the day of the week according to the year, month and day_ format(date,‘u‘)
[combinational logic circuit] - encoder
Tutorial on the principle and application of database system (057) -- MySQL exercises
"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 d.[link with game glitch] two point answer +spfa ring
U++ learning notes ustruct, uenum declaration and function library simple function implementation
谷歌浏览器调试工具使用基础版(一)
Is it safe to open an account for stock speculation through the online account manager?
服务器可用资源查询脚本
“蔚来杯“2022牛客暑期多校训练营2 G.[Link with Monotonic Subsequence] 分块构造
Record a failure caused by a custom redis distributed lock
Special topic of distributed micro service e-commerce (I) - Project Introduction
Is it safe to buy funds on e fund? Professional answers
ABC find 4-cycle (pigeon nest theorem)
3059. 雕塑(jzoj)









