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

View source: R/packetj.R

packetjR Documentation

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)

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.

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.

Value

Returns a matrix to be put into a wst2D object.

Note

Not intended to be used

Author(s)

Matt Nunes

Examples


#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)
#

LS2W documentation built on Nov. 2, 2022, 1:06 a.m.