Wavelet Toolbox Previous page   Next Page
wrcoef2

Reconstruct single branch from 2-D wavelet coefficients

Syntax

Description

wrcoef2 is a two-dimensional wavelet analysis function. wrcoef2 reconstructs the coefficients of an image.

X = wrcoef2('type',C,S,'wname',N) computes the matrix of reconstructed coefficients of level N, based on the wavelet decomposition structure [C,S] (see wavedec2 for more information).

'wname' is a string containing the name of the wavelet (see wfilters for more information). If 'type' = 'a', approximation coefficients are reconstructed; otherwise if 'type' = 'h' ('v' or 'd', respectively), horizontal (vertical or diagonal, respectively) detail coefficients are reconstructed.

Level N must be an integer such that 0 N size(S,1)-2 if 'type' = 'a' and such that 1 N size(S,1)-2 if 'type' = 'h', 'v' or 'd'.

Instead of giving the wavelet name, you can give the filters.

For X = wrcoef2('type',C,S,Lo_R,Hi_R,N), Lo_R is the reconstruction low-pass filter and Hi_R is the reconstruction high-pass filter.

X = wrcoef2('type',C,S,'wname') or X = wrcoef2('type',C,S,Lo_R,Hi_R) reconstruct coefficients of maximum level N = size(S,1)-2.

Examples

See Also

appcoef2, detcoef2, wavedec2


Previous page  wrcoef wrev Next page

© 1994-2005 The MathWorks, Inc.