Wavelet Toolbox
  Go to function:
    Search    Help Desk 
dwtmode    Examples   See Also

Discrete wavelet transform extension mode.

Syntax

dwtmode

dwtmode('mode') Where 'mode' can be 'zpd', 'sym', or 'spd'

Description

The dwtmode command sets the signal or image extension mode for discrete wavelet and wavelet packet transforms. The extension modes represent different ways of handling the problem of border distortion in signal and image analysis. For more information, see "Dealing with Border Distortion" in Chapter 6.

dwtmode or dwtmode('status') displays the current mode.

dwtmode('mode') sets the DWT extension mode according to the value of 'mode':

'mode'
DWT Extension Mode
'zpd'
Zero-padding (default)
'sym'
Symmetrization (boundary value replication)
'spd'
Smooth padding (first derivative interpolation at the edges)

If dwtmode is called with two input arguments, the second one is dummy and no text (status or warning) is displayed in the MATLAB command window.

The dwtmode function updates a global variable allowing three ways of signal extension. Only dwt and dwt2 use the global variable.

Examples

Note: You should change the extension mode only by using dwtmode; avoid changing the global variable directly.

Limitations

Periodized wavelet transform is handled separately (see dwtper, dwtper2,
idwtper, idwtper2).

See Also

dwt, dwt2

[ Previous | Help Desk | Next ]