📄 qccwavwaveletshapeadaptivedwt1d.3
字号:
.TH QCCWAVWAVELETSHAPEADAPTIVEDWT1D 3 "QCCPACK" "".SH NAMEQccWAVWaveletShapeAdaptiveDWT1D, QccWAVWaveletInverseShapeAdaptiveDWT1D \- shape-adaptive discrete wavelet transform and inverse transform for a 1D signal.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "int QccWAVWaveletShapeAdaptiveDWT1D(QccVector " signal ", QccVector " mask ", int " signal_length ", int " num_scales ", const QccWAVWavelet *" wavelet );.br.BI "int QccWAVWaveletInverseShapeAdaptiveDWT1D(QccVector " signal ", QccVector " mask ", int " signal_length ", int " num_scales ", const QccWAVWavelet *" wavelet );.SH DESCRIPTION.B QccWAVWaveletShapeAdaptiveDWT1D()performs a shape-adaptive discretewavelet transform (SA-DWT) of a one-dimensional signal..I num_scalesgives the number of scales, or levels, of the decomposition..BR QccWAVWaveletShapeAdaptiveDWT1D()implements a dyadic decomposition of.IR signal ;that is, the lowpass subband is recursively decomposed into lowpass andhighpass bands for each level of decomposition.The output of the SA-DWT is returned in.IR signal ,overwriting the original input signal.The output subbands reside in .I signalstarting with the lowpass subband of the lowest (coarsest) level ofdecomposition (i.e., the baseband) with subsequent highpass subbandsof increasing resolution following..LP.I maskindicates where the original input.I signalexists. That is, .I maskindicates the intervals of support in the original input.IR signal .Where.I maskis less than or equal to.BR QCCALPHA_TRANSPARENT ,there is no signal, and where.I maskis greater than.BR QCCALPHA_TRANSPARENT ,the signal exists and is transformed(see.BR QccAlpha (3)).Essentially this shape-adaptive transform is performed by identifyingcontiguous non-transparent segments of the input signal, and transformingthese segments individually with a usual 1D DWT (via a call to.BR QccWAVWaveletDWT1D (3))with appropriateextension at the ends of each segment.Each segment is transformed so that the global subsampling scheme forthe signal is respected; that is, the starting index for each segment isdetermined to be either odd or even based upon its location relativeto the start of.IR signal ,and this determines whether odd or even subsampling is used in theDWT of the segment..LPThe transparency mask is transformed (with a Lazy wavelet transform)alongside the signal so that, at completion of the transform,.IR maskindicates where valid coefficients, i.e., coefficients resulting fromnon-transparent segments in the input signal,reside in the output.IR signal .The transformed mask is returned in.IR mask ,overwriting the original input mask..LPCurrently, .BR QccWAVWaveletShapeAdaptiveDWT1D()supports only biorthogonal wavelets. These may beused with symmetric extension (lifting or filter-bankimplementations) or boundary-wavelet extension(lifting implementations only)..LPSegments within.I signalmay be of any length, odd or even.In the case of odd segment length, either the lowpass or highpasssubband at the next coarser scalewill be one sample longer thanthe other; which one is longer depends on whether the segmentstarts with an even- or odd-indexed sample relative to thestart of.IR signal .A segment of length one, i.e., an isolated signal sample,is somewhat of a degenerate case..BR QccWAVWaveletShapeAdaptiveDWT1D()handles a length-1 segment as follows.If the isolated sample is even-indexed relative to the start of.IR signal ,then the sample value is multiplied by sqrt(2) and placed in thelowpass band. If the isolated sample is odd-index, it is divided bysqrt(2) and placed in the highpass band..LP.B QccWAVWaveletInverseShapeAdaptiveDWT1D()performs the inverse SA-DWT of.IR signalwhich is assumed to have been producedby.BR QccWAVWaveletShapeAdaptiveDWT1D() ..IR maskshould be the corresponding Lazy-wavelet transformed maskalso produced by.BR QccWAVWaveletShapeAdaptiveDWT1D() ..I num_scalesgives the number of levels of decomposition that exist in.IR signal ..SH "RETURN VALUES"These routinesreturn 0 on success and 1 on error..SH "NOTES"SA-DWTs have been recently included in Version 2 of the MPEG-4standard, wherein they are used for texture coding of arbitrarily shaped still objects.Li and Li (see below) elaborate at length on the shape-adaptive DWTused in MPEG-4, and also consider some variants not includedin the MPEG-4 standard..LPThe SA-DWT implemented in QccPack differs slightlyfrom the transform specified by MPEG-4.The most significant difference is in the handling of isolated samples (i.e., segments with length one). In MPEG-4, isolated samples are alwaysmultiplied by sqrt(2) and placed in the lowpass band regardless of theparity of the index of the sample. Another differenceis that the QccPack SA-DWTcan handle boundary-wavelet extension in addition to symmetric extensionfor lifting implementations of wavelets; MPEG-4 uses only symmetric extension.Finally, Li and Li describe several SA-DWT variants thatare currently not implemented in QccPack, namely, SA-DWTsusing orthonormal wavelets or biorthogonal wavelets with even-length symmetricfilters..SH "SEE ALSO".BR QccWAVWaveletDWT1D (3),.BR QccWAVWaveletInverseDWT1D (3),.BR QccWAVWavelet (3),.BR QccPackWAV (3),.BR QccPack (3).LPS. Li and W. Li, "Shape-Adaptive Discrete Wavelet Transforms forArbitrarily Shaped Visual Object Coding,".IR "IEEE Transactions on Circuits and Systems for Video Coding" ,vol. 10, pp. 725-743, August 2000..LPISO/IEC 14496-2, "Information Technology -- Coding of audio-visual objects --Part 2: Visual," .IR "MPEG-4 Standard" ,Amendment 1, July 2000..SH AUTHORCopyright (C) 1997-2009 James E. Fowler.\" The programs herein are free software; you can redistribute them an.or.\" modify them under the terms of the GNU General Public License.\" as published by the Free Software Foundation; either version 2.\" of the License, or (at your option) any later version..\" .\" These programs are distributed in the hope that they will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the.\" GNU General Public License for more details..\" .\" You should have received a copy of the GNU General Public License.\" along with these programs; if not, write to the Free Software.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -