
function ww = FWT2_onestep(x,ht,gt,sht,sgt);

% FWT2_onestep -- 1 step of Biorthogonal 2D, tensor-product WT
% Usage
%   ww = FWT2_onestep(x,ht,gt,sht,sgt)
% Inputs
%   x        image
%   ht, sht  lp filter + shift
%   gt, sgt  hp filter + shift
% Outputs
%   ww       FWT, one step in each direction
% Description
%   first filter the rows, then filter the columns


w1 = FWT2_halfstep(x,ht,gt,sht,sgt);
w2 = FWT2_halfstep(w1',ht,gt,sht,sgt);
ww = w2';
