lemontree
lemontree

Reputation: 21

how to get decomposition result of dwt3

Function dwt3 is from Wavelet Toolbox to perform Single-level discrete 3-D wavelet transform.I tested as below.I have two questions, one: how to get the decomposition mat results in 8 different high and low frequency level, two:how to keep the same dimensions with input mat, i.e., the decomposition mat dim is still 4*4*4 as same as the input 3D array.

X = reshape(1:64,4,4,4)
wt = dwt3(X,'coif1')

wt = 

sizeINI: [4 4 4]
filters: [1x1 struct]
   mode: 'sym'
    dec: {2x2x2 cell}

Upvotes: 0

Views: 34

Answers (1)

Waseem Anwar
Waseem Anwar

Reputation: 301

You can get decomposition values by appending .dec{level}. .i.e.

X = reshape(1:64,4,4,4);

wt = dwt3(X,'coif1');

wt.dec{1}

wt.dec{2}

Upvotes: 1

Related Questions