基于逆滤波的图像去模糊
来源:互联网 发布:业绩数据分析 编辑:程序博客网 时间:2024/05/21 17:40
假设图像产生了均匀运动模糊,图像在
频域乘积:
用退化函数与退化图像的傅里叶变换估计原图像的傅里叶变换:
根据公式可以看出,得到原图像的估计非常容易受到噪声的影响,尤其是退化函数比较小时。
close all;clear all;clc;% Display the original image.I = imread('1.jpg'); [d1,d2,d3] = size(I); if(d3 > 1) I = rgb2gray(I);endI = im2double(I);[hei,wid,~] = size(I);subplot(2,3,1),imshow(I);title('Original Image ');% Simulate a motion blur.LEN = 100;THETA = 11;PSF = fspecial('motion', LEN, THETA);blurred = imfilter(I, PSF, 'conv', 'circular');subplot(2,3,2), imshow(blurred); title('Blurred Image');% Inverse filterIf = fft2(blurred);Pf = fft2(PSF,hei,wid);deblurred = ifft2(If./Pf);subplot(2,3,3), imshow(deblurred); title('Restore Image')% Simulate additive noise.noise_mean = 0;noise_var = 0.00001;blurred_noisy = imnoise(blurred, 'gaussian', ... noise_mean, noise_var);subplot(2,3,4), imshow(blurred_noisy)title('Simulate Blur and Noise')% Try restoration assuming no noise.If = fft2(blurred_noisy);deblurred2 = ifft2(If./Pf);subplot(2,3,5), imshow(deblurred2)title('Restoration of Blurred Assuming No Noise');% Try restoration with noise is known.noisy = blurred_noisy - blurred;Nf = fft2(noisy);deblurred2 = ifft2(If./Pf - Nf./Pf);subplot(2,3,6), imshow(deblurred2)title('Restoration of Blurred with Noise Is Known')
http://blog.csdn.net/bluecol/article/details/47357717
数字图像处理第三版
阅读全文
1 0
- 基于逆滤波的图像去模糊
- 图像去模糊(逆滤波)
- 图像去模糊(逆滤波)
- 图像去模糊(逆滤波)
- 基于模糊滤波的数字图像去噪
- 基于最小均方差(维纳)滤波的图像去模糊
- 图像去模糊(维纳滤波)
- 图像的去模糊
- 克服维纳滤波去运动模糊后图像中出现的白点
- 基于中值滤波或双边滤波方式的图像去雾效果的研讨
- 基于中值滤波或双边滤波方式的图像去雾效果的研讨。
- 基于中值滤波或双边滤波方式的图像去雾效果的研讨。
- 图像去模糊(约束最小二乘方滤波)
- 图像去模糊(约束最小二乘方滤波)
- 【图像处理】【去模糊】图像去模糊的原理
- 图像平滑、滤波、模糊
- 图像去模糊算法在CUDA上的实现,基于MATLAB平台
- 图像去模糊的一些网站
- 前端js免费的CDN网站
- Android签名与校验过程详解
- WPF与Prism一并学习(五)
- jQuery用ajax请求json数据并绑定到表格
- 欢迎使用CSDN-markdown编辑器
- 基于逆滤波的图像去模糊
- 【Scikit-Learn 中文文档】神经网络模型(无监督)- 无监督学习
- Android时间滚轮(二)
- 使用自定义View做一个小开关
- 【Scikit-Learn 中文文档】模型评估: 量化预测的质量
- windows10中远程登录ubuntu16.04的桌面
- Mybatis 的几种查询方式
- python文件读写操作
- Spring框架面试精华知识