convertimwd {LS2W} | R Documentation |
Converting from a spatially ordered imwd
object to a packet-ordered wst2D
object.
convertimwd(imwd, ...)
imwd |
A imwd type object obtained by a stationary wavelet transform, i.e. |
... |
Any additional arguments. |
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.
An object of class wst2D
Matt Nunes
#
#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)
#