DWT extension mode used to extend the input, specified as one of the
following values.
modeDWT Extension Mode'zpd'Zero extension
'sp0'Smooth extension of order 0
'spd' (or'sp1')Smooth extension of order 1
'sym' or
'symh'Symmetric extension (half point): boundary value
symmetric replication
'symw'Symmetric extension (whole point): boundary value
symmetric replication
'asym' or
'asymh'Antisymmetric extension (half point): boundary
value antisymmetric replication
'asymw'Antisymmetric extension (whole point): boundary
value antisymmetric replication
'ppd',
'per'Periodized extension
If the signal
length is odd and mode is
'per', an extra sample equal to
the last value is added to the right and the extension
is performed in 'ppd' mode. If the
signal length is even, 'per' is
equivalent to 'ppd'. This rule also
applies to images.
The DWT associated with the symmetric, smooth, zero, and periodic
extension modes are slightly redundant. But the inverse DWT ensures a
perfect reconstruction for the extensions mentioned.
Note
dwtmode updates a global variable. Only use
dwtmode to change the extension mode. Avoid
changing the global variable directly.