postp2d_appe.m

来自「多小波变换MATLAB源程序,m文件形式给出」· M 代码 · 共 44 行

M
44
字号
function fhat=postp2D_appe(fhatp,pflt)
%fhat=postp2D_appe(fhatp,pflt)
%
%  This function performs critically sampled postprocessing of reconstructed 
%  preprocessed 2-dimensional signal. Boundaries are handled by periodic 
%  extension. For details see [SW].
%
%  Input: 
%    pflt       string of characters, name of the prefilter;
%               for possible names and short descriptions see coef_prep.m
%    fhatp      n by n real array, reconstructed preprocessed signal; 
%               for structure of fhatp see [SW]
%
%  Output: 
%    fhat       n by n real array, reconstructed signal 
%
%  Example of Usage:
%    fhat=postp2D_appe(fhatp,'clap')

% Author: Vasily Strela
% COPYRIGHT 1997,98 by Vasily Strela

[PR,PO]=coef_prep(pflt);
[n1,n2]=size(fhatp);
fhat=zeros(n1,n2);
[nf,np]=size(PO);

prl=round(n1/nf);
aa=zeros(nf,prl);
for i=1:n2
  for j=1:nf
    aa(j,:)=fhatp((j-1)*prl+1:j*prl,i)';
  end
  fhat(:,i)=(postp1D_appe(aa,pflt))';
end

prl=round(n2/nf);
aa=zeros(nf,prl);
for i=1:n1
  for j=1:nf
    aa(j,:)=fhat(i,(j-1)*prl+1:j*prl);
  end
  fhat(i,:)=postp1D_appe(aa,pflt);
end

⌨️ 快捷键说明

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