⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qccwavfilterbank.3

📁 QccPack implementation in C
💻 3
字号:
.TH QCCWAVFILTERBANK 3 "QCCPACK" "".SH NAMEQccWAVFilterBank \- data structure .B QccWAVFilterBankand corresponding.B FBKfile format for wavelet-based analysis/synthesis using afilter-bank implementation.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "int QccWAVFilterBankInitialize(QccWAVFilterBank *" filter_bank );.br.BI "int QccWAVFilterBankAlloc(QccWAVFilterBank *" filter_bank );.br.BI "void QccWAVFilterBankFree(QccWAVFilterBank *" filter_bank );.br.BI "int QccWAVFilterBankPrint(const QccWAVFilterBank *" filter_bank );.SH DESCRIPTIONQccPack provides data structure.B QccWAVFilterBankfor representing the filter coefficients for a two-band filterbank.  Such a two-band filter bank would be used for wavelet-basedanalysis and synthesis using filtering (as opposed to lifting; see.BR QccWAVLiftingScheme (3) ).This filter-bank structure can be read from and written to .BR FBK -formatfiles, or a.B QccWAVFilterBankstructure can be used without file input or output..LPThe main component of a.B QccWAVFilterBankstructure is a set of four.B QccFilterstructures; each of these structures contain the filter coefficientsfor the two analysis filters (highpass and lowpass) and the twosynthesis filters (highpass and lowpass) of a biorthogonalfilter bank (orthogonal filters are supported as a special case)..SH "DATA STRUCTURE"The.B QccWAVFilterBankdata structure is defined as:.RS.nftypedef struct{  QccString filename;  QccString magic_num;  int major_version;  int minor_version;  int orthogonality;  QccFilter lowpass_analysis_filter;  QccFilter highpass_analysis_filter;  QccFilter lowpass_synthesis_filter;  QccFilter highpass_synthesis_filter;} QccWAVFilterBank;.fi.RE.LPThe fields of.B QccWAVFilterBankare as follows:.TP.I filenameThe name of the file..TP.IR magic_num ", " major_version ", " minor_versionThe magic number and version of the file..TP.IR orthogonalityThe orthogonality of the filter bank -- possible values are.BR QCCWAVFILTERBANK_ORTHOGONAL ,.BR QCCWAVFILTERBANK_BIORTHOGONAL ,or.BR QCCWAVFILTERBANK_GENERAL(this last case is for when the filter bank is neither orthogonalnor biorthogonal)..TP.IR lowpass_analysis_filter ", " highpass_analysis_filterFilters for analysis..TP.IR lowpass_synthesis_filter ", " highpass_synthesis_filterFilters for synthesis..SH "FILE FORMAT"For reading and writing structuresof type.BR QccWAVFilterBank ,QccPack provides the.B FBKfile format.This file format starts with an ASCII header followed bybinary data.The ASCII header consists of magic-number/revisioninformationfollowed by any amount of white space(space, `\\t' (tab), `\\n' (newline), `\\r' (return)) and/orcomments lines (lines starting with `#').  Following this white space,additional ASCIIheader information is given, separated by blanks and newlines.Binary data follows this ASCII header information..LPThe.B FBKfile format consists of the following information:.RS.sp.BI FLT X.X.br.I "<white space>".br.I orthogonality.br.I causality.br.I length.br.I coefficients.br\|..br\|..br\|..br.sp.REwhere.B FBKis the magic number,.I X.Xis the version number,.I "<white space>"is white space and/or comment lines, .I orthogonalityis the orthogonality of the filter bank(one of .BR QCCWAVFILTERBANK_ORTHOGONAL ,.BR QCCWAVFILTERBANK_BIORTHOGONAL ,or.BR QCCWAVFILTERBANK_GENERAL ),.I causalityis the causality of the first filter (one of .BR QCCFILTER_CAUSAL or.BR QCCFILTER_ANTICAUSAL ),and.I coefficientsare the first filter coefficients listed in order of increasingindices.If there are other filters in the file (see below), the causality, length,and coefficients of these follow in turn..LPFor an orthogonal filter bank,the .B FBKfile contains only one set of filter coefficients, those ofthe scaling filter (i.e., the lowpass synthesis filter);the other three filters can be obtained by a call to.BR QccWAVFilterBankMakeOrthogonal (3)..LPFor a biorthogonal filter bank,the .B FBKfile contains two sets of filter coefficients.  The first filter in thefile is the primary scaling filter (i.e, the lowpass synthesis filter);the second filter is the dual scaling filter (i.e., the lowpass analysisfilter).  The other two filters (the twowavelet or highpass filters) can by obtained by a call to.BR QccWAVFilterBankMakeBiorthogonal (3)..LPFor a .B QCCWAVFILTERBANK_GENERALtype of filter bank, all four filters are stored in the file, in the orderof lowpass analysis, highpass analysis, lowpass synthesis, and highpasssynthesis..SH "ROUTINES".B QccWAVFilterBankInitialize()should be called before any use of a.B QccWAVFilterBankstructure..B QccWAVFilterBankInitialize()initializes the fields of.I filter_bankto the following values:.RS.IR filename :.B NULLstring.br.IR magic_num :.B QCCFILTERBANK_MAGICNUM.br.IR major_version ", " minor_version :initialized to output of .BR QccGetQccPackVersion (3).br.IR orthogonality :-1 (undefined).RE.BR QccFilterInitialize (3)is called for each of the four filters..LP.B QccWAVFilterBankAlloc()allocates the filter bank by calling.BR QccFilterAlloc (3)for each of the four filters of the filter bank.The lengths of each of the four filters must be set prior to calling.BR QccWAVFilterBankAlloc() ..LP.B QccWAVFilterBankFree()frees the filter bank by calling.BR QccFilterFree (3)for each of the four filters of the filter bank..LP.B QccWAVFilterBankPrint()prints the contents of.I filter_bankto stdout..SH "RETURN VALUE"These routines return 0 on success, and 1 on failure..SH "SEE ALSO".BR QccPackWAV (3),.BR QccPack (3).LPM. Antonini, M. Barlaud, P. Mathieu, and I. Daubechies,"Image Coding Using Wavelet Transform,".IR "IEEE Transactions on Image Processing" ,vol. 1, pp. 205-220, April 1992..SH AUTHORCopyright (C) 1997-2005  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 + -