imwr.imwd (imwd, bc=imwd$bc, verbose=FALSE)
imwr.imwdc(imwdc,bc=imwd$bc, verbose=FALSE)
imwd
or imwdc
respectively.
Typically these are returned by imwd
and
threshold.imwd
.imwd
(decomposition) is followed
immediately by a imwr
(reconstruction) then the returned matrix
will be exactly the same as the original image.This function is a method for the generic function
imwr()
for class imwd
.
It can be invoked by calling imwr(x)
for an
object x
of the appropriate class, or directly by
calling imwr.imwd(x)
regardless of the
class of the object.
wd
for a list.imwd
, plot
, threshold
example(imwd)
# Look at the error
summary( abs(c(imwr(imwdL) - lennon)))#around 1e-9
## Threshold after decomposing an image -- automagically compresses:
(tdi <- threshold(imwdL))
## Now reconstruct; imwr calling imwr.imwdc directly
filled.contour(answer <- imwr(tdi))
Run the code above in your browser using DataLab