2-D wavelet reconstruction
Load an image.
Perform a level 2 wavelet decomposition of the image using the
wv = 'sym4'; [c,s] = wavedec2(X,2,wv);
Reconstruct the image from the wavelet decomposition structure.
xrec = waverec2(c,s,wv);
Check for perfect reconstruction.
ans = 2.0989e-10
wname— Analyzing wavelet
Analyzing wavelet, specified as a character vector or string scalar.
waverec2 supports only Type 1 (orthogonal) or
Type 2 (biorthogonal) wavelets. See
wfilters for a
list of orthogonal and biorthogonal wavelets.
LoR,HiR— Wavelet reconstruction filters
Wavelet reconstruction filters, specified as a pair of even-length
LoR is the lowpass reconstruction
HiR is the highpass reconstruction filter.
The lengths of
HiR must be
wfilters for additional
Usage notes and limitations:
wname must be constant.