WT_IWT


Purpose:

This WAIR command is used to obtain the n-Dimensional Discrete Wavelet Transform and its Inverse. Usually 1<= n <= 4, though this is not a real limitation, any positive integer n would work, however, the computational complexity increases exponentially with the increase of dimensionality. The user specifies the wavelet filter, the number of dimensions of the data and the size of each dimension.
The program will generate a "*.log" output file that contains some information about the WT (or IWT) of the data (e.g., min/max values).


Usage:

WT_IWT WaveletBasis WhichTransform Num_Dim x_1_Dim_Size [ [x_k_Dim_Size] ] data_in.img WT_data_out.img

where the following definitions are used:

WaveletBasis
Wavelet basis used to determine the WT/IWT of the signal.
Choose one of the following:
WaveletBasis==1 , Spline_3_7;
WaveletBasis==2 , Spline_3_3;
WaveletBasis==3 , Spline_2_4;
WaveletBasis==4 , Spline_2_2;
WaveletBasis==5 , Pseudocoiflet_4_4;
WaveletBasis==6 , Haar;
WaveletBasis==7 , Daubechies_20;
WaveletBasis==8 , Daubechies_12;
WaveletBasis==9 , Daubechies_10;
WaveletBasis==10 , Daubechies_8;
WaveletBasis==11 , Daubechies_6;
WaveletBasis==12 , Daubechies_4;
WaveletBasis==13 , Coiflet_6;
WaveletBasis==14 , Coiflet_4;
WaveletBasis==15 , Coiflet_2;
WaveletBasis==16 , BurtAdelson;
WaveletBasis==17 , BattleLemarie;
WhichTransform
Choose "1" for WT and "0" for IWT
Num_Dim
the number of dimensions of the data set
x_1_Dim_Size
the the size of the first (fastest varying index) dimension of the data. Remember, all dimension sizes need to be powers of 2
x_k_Dim_Size
the the size of the k-th dimension of the data
data_in.img
name of the file containing the input raw (4 byte) data set
WT_data_out.img
name of the output file that will contain the floating-point array of the WT of the input data


Examples:

./WT_IWT 7 1 2 256 256 ./data.dir/4Bmri_0fltr.img ./data.dir/WT4Bmri_0fltr.img


© 1997 Ivo D. Dinov,