Learn R Programming

LS2W (version 1.3.6)

convertimwd: Convert a non-decimated imwd object to a wst2D object.

Description

Converting from a spatially ordered imwd object to a packet-ordered wst2D object.

Usage

convertimwd(imwd, ...)

Value

An object of class wst2D

Arguments

imwd

A imwd type object obtained by a stationary wavelet transform, i.e. imwd$type must be "station".

...

Any additional arguments.

Author

Matt Nunes

Details

Inverting a 2-D non-decimated wavelet transform requires that the output is structured as a packet ordered transform. This function allows us to convert from the non-decimated (time ordered) imwd object to the packet ordered wst2D object. The function extracts information at a given scale/direction from the imwd object, converts it into the appropriate format and inserts it in the appropriate location of a (null) wst2D object. This function is used when simulating an LS2W process within the function LS2Wsim.cddews and does not need to be used separately.

See Also

imwd, wst2D, packetj

Examples

Run this code
#
#Obtain an imwd class object
#
testimage <- HaarMontage(256, "diagonal")
#
IMWDobject<- imwd(testimage, type="station")

# Verify the class of this object
#
class(IMWDobject) 
#
#Convert to packet ordered
#
IMWDconverted<-convertimwd(IMWDobject)
#
#Verify new class
#
class(IMWDconverted)
#

Run the code above in your browser using DataLab