uncompress.imwdc: Uncompress an imwdc class object

uncompress.imwdcR Documentation

Uncompress an imwdc class object

Description

An imwdc.object is a run-length encoded object, essentially has all zeroes removed and only non-zero elements stored. This function undoes the compression.

Usage

## S3 method for class 'imwdc'
uncompress(x, verbose=FALSE, ...)

Arguments

x

The object to uncompress

verbose

If TRUE then print out messages

...

Other arguments

Details

Description says all, inverse of compress.imwd function.

Value

The uncompressed imwd.object.

Author(s)

G P Nason

See Also

imwd, compress.imwd

Examples

data(lennon)
#
# Do 2D wavelet transform on lennon image
#
lwd <- imwd(lennon)
#
# Do threshold the wavelet coefficients, a lot of zeroes are present
#
lmdT <- threshold(lwd)
#
# What is the class of the thresholded object?
#
class(lmdT)
#[1] "imwdc"
#
# note that the coefficients are stored efficiently in the imwdc class object
#
uncompress(lmdT)
#Class 'imwd' : Discrete Image Wavelet Transform Object:
#~~~~  : List with 30 components with names
#nlevelsWT fl.dbase filter w0Lconstant bc type w0L1 w0L2 w0L3 w1L1 w1L2
#w1L3 w2L1 w2L2 w2L3 w3L1 w3L2 w3L3 w4L1 w4L2 w4L3 w5L1 w5L2 w5L3 w6L1
#w6L2 w6L3 w7L1 w7L2 w7L3
#
#$ wNLx are LONG coefficient vectors !
#
#summary(.):
#----------
#UNcompressed image wavelet decomposition structure
#Levels:  8
#Original image was 256 x 256  pixels.
#Filter was:  Daub cmpct on least asymm N=10
#Boundary handling:  periodic

wavethresh documentation built on Nov. 16, 2022, 5:16 p.m.