标签:
deblurringhelpdeconvwnr去模糊 |
分类: Matlab |
Deblurring
一、利用维纳滤波 (Winer Filter) 去模糊
主要通过函数 deconvwnr
实现,维纳滤波去模糊需要了解图像噪声的部分信息,否则很难得到满意的结果。
1. 显示原始图像
I
imshow(I);
title(
'Original
|
http://s11/middle/002pSPISzy6GNjBGDcC8a&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
2. 仿真相机移动信号
LEN
THETA
PSF
blurred
figure,
|
http://s15/middle/002pSPISzy6GNjBHzLUfe&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
3. 仿真噪声
noise_mean
noise_var
blurred_noisy
figure,
title(
'Simulate
|
http://s16/middle/002pSPISzy6GNjBKbxR1f&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
4. 无噪声假设的条件下重构图像
estimated_nsr
wnr2
figure,
title(
'Restoration
|
http://s13/middle/002pSPISzy6GNjBN7Nqbc&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
5. 进行合理的噪声假设重构图像
estimated_nsr
wnr3
figure,
title(
'Restoration
|
http://s2/middle/002pSPISzy6GNjBPitH11&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
二、使用 Regularized Filter 实现去模糊
%
I
I
figure,
title(
'Original
%
PSF
%
Blurred
V
BlurredNoisy
figure,
title(
'Blurred
%
NP
[reg1
figure,
title(
'Restored
|
http://s16/middle/002pSPISzy6GNjBSs6H8f&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
http://s15/middle/002pSPISzy6GNjBXhUi3e&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
三、使用 Lucy-Rocjardson 算法实现去模糊
I
I
subplot(131),
title(
'Original
PSF
Blurred
V
BlurredNoisy
subplot(132),
title(
'Blurred
luc1
subplot(133),
title(
'Restored
|
http://s5/middle/002pSPISzy6GNjBZOVmf4&690help 图像去模糊" TITLE="Matlab help 图像去模糊" />
四、使用 Blind Deconvolution Algorithm 去模糊
这个方法过程相对复杂些,Matlab help 中有详细的例子介绍。