⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fastgradientbackproject.m

📁 a matlab code on duper resolution
💻 M
字号:
% Computes the gradient backprojection for the fast deblurring and
% interpolation method. This function implements the gradient of the
% level one norm between the blurred version of the current deblurred HR estimate and
% the original blurred HR estimate created by the median and shift method.
%
% Inputs:
% Xn - The current estimate of the deblurred HR image
% Z -  The original blurred estimate of the HR image
% A -  Normilzation factor for each pixel
% Hpsf - The PSF function (common to all frames and space invariant)
%
% Outpus:
% The backprojection of the sign of the residual error
function G=FastGradientBackProject(Xn, Z, A, Hpsf) 

% Blur the current HR estimate
Zn = imfilter(Xn, Hpsf, 'symmetric');

% Deblur the normalized sign of Xdiff
Gsign = sign(A.*(Zn-Z));

% Unblur the backprojected image
G = imfilter(A.*Gsign, flipud(fliplr(Hpsf)), 'symmetric');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -