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

📄 iafritfd.m

📁 为stanford大学donoho教授所编写的redgit变换源代码。是用c编写的
💻 M
字号:
function x = iafritfd(r, m, ind, l, wpar)
% IFRITFD  Inverse adaptive folded finite ridgelet transform
%	x = iafritfd(r, m, ind, l, wpar)
%
% Input:
%	r:	ridgelet coefficients in a matrix, one column 
%		for each direction (there is N+1 directions)
%	m:	mean value of the folded image
%	ind:	list of projections in which DWT is replaced by DCT
%	l:	number of wavelet decomposition levels
%	wpar:	parameters for spline biorthogonal filters, e.g. [1,3]
%
% Output:
%	x:	reconstructed image
%
% See also:	AFRITFD

% Length of each projection
n = size(r, 1);

% Inverse DCT for the indicated projections
ra = zeros(n, n+1);
if ~isempty(ind)
    ra(:, ind) = idct(r(:, ind));
end

% Inverse wavelet transform for other projections
wind = setdiff(1:n+1, ind);

% Retrieve the filters from input parameters
[qmf, dqmf] = MakeBSFilter('CDF', wpar);

%%% UN-OPTIMIZED Part (modified from WaveLab's FWT_SBS)
J = ceil(log(n)/log(2));
L = J - l;		% coarset level
dp = dyadpartition(n);

% Transpose ra since WaveLab operates on row vector
r = r';

for i = wind
    % IWT_SBS of the i-th "column" of r
    wcoef = r(i, :);
    rec = wcoef(1:dp(L+1));

    for j = L:J-1,
	dyadj = (dp(j+1)+1):dp(j+2);
	rec = UpDyad_SBS(rec, wcoef(dyadj), qmf, dqmf);
    end
   
    ra(:, i) = rec';
end

% Inverse folded FRAT
x = ifratfd(ra, m);

⌨️ 快捷键说明

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