Learn R Programming

wavethresh (version 4.7.3)

draw.imwd: Draw mother wavelet associated with an imwd object.

Description

This function draws the mother wavelet associated with an imwd.object --- a two-dimensional wavelet decomposition.

Usage

# S3 method for imwd
draw(wd, resolution=128, ...)

Value

If the plot.it argument is set to TRUE then nothing is returned. Otherwise, as with draw.default, the coordinates of what would have been plotted are returned.

Arguments

wd

The imwd class object whose associated wavelet you wish to draw.

resolution

The resolution at which the computation is done to compute the wavelet picture. Generally the resolution should be lower for two-dimensional wavelets since the number of computations is proportional to the square of the resolution (the DWT is still O(n) though).

...

Additional arguments to pass to the draw.default function which does the drawing.

RELEASE

Version 2 Copyright Guy Nason 1993

Author

G P Nason

Details

This function extracts the filter component from the imwd object (which is constructed using the filter.select function) to decide which wavelet to draw. Once decided the draw.default function is used to actually do the drawing.

See Also

filter.select, imwd.object, draw.default.

Examples

Run this code
#
# Let's use the lennon test image
#
data(lennon)
if (FALSE) image(lennon)
#
# Now let's do the 2D discrete wavelet transform using Daubechies'
# least-asymmetric wavelet N=6
#
lwd <- imwd(lennon, filter.number=6)
#
# And now draw the wavelet that did this transform
#
if (FALSE) draw(lwd)
#
# A nice little two-dimensional wavelet!
#

Run the code above in your browser using DataLab