540 likes | 753 Views
Chapter 05 2-Dim Multiresolution Analysis (MRA). Haar Wavelet Transform - 1dim main. Haar Wavelet Transform - 1dim Result. Haar Wavelet Transform - 1dim printArray. Haar Wavelet Transform - 1dim Compute g-coefficients. Haar Wavelet Transform - 1dim Forward Transformation.
E N D
Standard Decomposition 1dim L H LL HL H LLL HLL HL H LL LL HL LL HLL HL H
fwd_DWT fwd_DWT (data) len_2 = data.length/2; for (k = 0; k < len_2; k++) { tdata[k] = 0; tdata[k+len_2] = 0; for (int m = 2k; m < (2k+h.length); m++) { tdata[k] = tdata[k] + h[m-2k] * data[m]; tdata[k+len_2] = tdata[k+len_2] + g[m-2k] * data[m]; } } data = tdata / sqrt(2);
inv_DWT inv_DWT (data) len_2 = data.length/2; for (k = 0; k < len_2; k++) { tdata[2k] = 0; tdata[2k+1] = 0; for (every m) { tdata[2k] = tdata[k] + data[m] * h[k-2m]; tdata[2k+len_2] = tdata[k+len_2] + data[m] * g[k-2m]; } } data = tdata *sqrt(2);
Standard Decomposition 2dim L H L H L H L H L H L H L H L H
Standard Decomposition 2dim LL HL H LL HL H LL HL H LL HL H LL HL H LL HL H LL HL H LL HL H
Standard Decomposition 2dim LLL HLL HL H LLL HLL HL H LLL HLL HL H LLL HLL HL H LLL HLL HL H LLL HLL HL H LLL HLL HL H LLL HLL HL H
Standard Decomposition 2dim LL LL HL LL HLL HL H LL LL HL LL HLL HL H LL LL HL LL HLL HL H LL LL HL LL HLL HL H LL LL HL LL HLL HL H LL LL HL LL HLL HL H LL LL HL LL HLL HL H LL LL HL LL HLL HL H
Standard Decomposition 2dim - V2 L H LL HL H LLL LHL LH Row HLL HHL HH Col LL LL LL HL HLL HL LL HL HL HHH HLL HHL HH
Standard Decomposition 2dim - V2 Row Column
Standard Decomposition 2dim - V3 Row Column
2-Dim Haar Base FunctionsStandard construction The standard construction of a two-dimensional wavelet basis consists of all possible tensor products of one-dimensional basis functions.
2-Dim Haar Base Functions for V2Standard construction y + + - + - + - x + + - + - - + - - + - + + - + + - + - - + - - + - + + - + + - + + - - + + - - + - - + +
2-Dim Haar Base Functions for V2Standard construction y x + - - + + - - +
NonStandard Decomposition L H Row Col LL HL LLL LLH HL Row LH HH LH HH Col LL LL LL HL HL LL LH LL HH LH HH
NonStandard Decomposition 2dim - V2 Row Column Row Column
NonStandard Decomposition 2dim - V3 Row Row Column Column Row Column
decomposition decomposition (data, jStart, jEnd) { for (j = jStart-1, j >= jEnd, j--) { fwd_DWT(data) } }
decomposition_NonStandard decomposition_NonStandard (data, jStart, jEnd) { for (j = jStart-1, j >= jEnd, j--) { fwd_DWT_2D(data) } }
fwd_DWT_2D fwd_DWT_2D (data) { for ( every row) fwd_DWT(data[row]) } transpose (data) for ( every row) fwd_DWT(data[row]) } transpose (data)
reconstruction_NonStandard reconstruction_NonStandard (data, jStart, jEnd) { for (j = jStart+1, j <= jEnd, j--) { inv_DWT_2D(data) } }
inv_DWT_2D inv_DWT_2D (data) { transpose (data) for ( every row) inv_DWT(data[row]) } transpose (data) for ( every row) inv_DWT(data[row]) }
class Waveleth-coefficients D2-D4-D6-D8-D10-D12-D14-D16-D18-D20- D30
class WaveletD2 - D4 - D6 - D8 - D10 - D12 - D14 - D16 - D18 - D20 - D30