Learn R Programming

LS2W (version 1.3.6)

packetj: Converts an imwd object to a wst2D object at a given level.

Description

Reorders the informtion at a given level of an imwd object to be in the form required for a wst2D object.

Usage

packetj(imwd, level, o)

Value

Returns a matrix to be put into a wst2D object.

Arguments

imwd

An imwd object from a non-decimated wavelet transform, i.e. type is station.

level

The level we wish to convert.

o

Computes weaving permutation for conversion from imwd to wst2D.

Author

Matt Nunes

Details

This function combines the information from an imwd object at a given level and reorders it to be in the approriate form for a wst2D object. This function is required by convertimwd.

Examples

Run this code

#Obtain an imwd object
#
testimage <- HaarMontage(256, "diagonal")
testimageIMWD<- imwd(testimage, type="station")
#
#Specify our weaving permutation
#
arrvec <- getarrvec(9, sort=FALSE)
#
#Convert level 6 coefficients into packet ordered object
#
o <- arrvec[,2]
packmat <- packetj(testimageIMWD, 6, o)
#

Run the code above in your browser using DataLab