✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
针对数字图像在处理过程中容易产生模糊的现象,提出了基于无参考图像质量评价的自适应反卷积去模糊算法
⛄ 部分代码
clear all
close all
clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Demo file for deconvtv
% Image deblurring
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Prepare images
f_orig = im2double(imread('./data/building.jpg'));
[rows cols colors] = size(f_orig);
H = fspecial('gaussian', [9 9], 2);
g = imfilter(f_orig, H, 'circular');
g = imnoise(g, 'gaussian', 0, 0.00001);
% Setup parameters (for example)
opts.rho_r = 2;
opts.beta = [1 1 0];
opts.print = true;
opts.alpha = 0.7;
opts.method = 'l2';
% Setup mu
mu = 10000;
% Main routine
tic
out = deconvtv(g, H, mu, opts);
toc
% Display results
figure(1);
subplot(121)
imshow(g);
title('input');
subplot(122)
imshow(out.f);
title('output');
⛄ 运行结果
⛄ 参考文献
[1] S.H. Chan, R. Khoshabeh, K.B. Gibson, P.E. Gill, and T.Q. Nguyen, “An augmented Lagrangian method for total variation image restoration,” IEEE Trans. Image Process., vol. 20, no. 11, pp.3097–3111, Nov. 2011.
[2] Y. Wang, J. Yang, W. Yin, and Y. Zhang, “A new alternating minimization algorithm for total variation image reconstruction,” SIAM Journal on Imaging Sciences, vol. 1, pp. 248–272, 2008.
[3] B. Wahlberg, S. Boyd, M. Annergren, and Y. Wang, “An ADMM algorithm for a class of total variation regularized estimation problems,” in Proceedings 16th IFAC Symposium on System Identifification,Jul. 2012, vol. 16.