qccwavklttce3dlosslessencode.3

来自「spiht for linux this is used to decod an」· 3 代码 · 共 183 行

3
183
字号
.TH QCCWAVKLTTCE3DLOSSLESSENCODE 1 "QCCPACK" "".SH NAMEQccWAVklttce3DLosslessEncode, QccWAVklttce3DLosslessDecode \-encode/decode an image cube using the lossless KLT+3D-TCE algorithm.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "int QccWAVklttce3DLosslessEncode(const QccIMGImageCube *" image ", QccBitBuffer *" buffer ", int " num_levels ", double " alpha ", const QccWAVWavelet *" wavelet );.sp.BI "int QccWAVklttce3DLosslessDecodeHeader(QccBitBuffer *" buffer ", int *" num_levels ", int *" num_frames ", int *" num_rows ", int *" num_cols ", int *" max_coefficient_bits ", double *" alpha );.sp.BI "int QccWAVklttce3DLosslessDecode(QccBitBuffer *" buffer ", QccIMGImageCube *" image ", int " num_levels ", double " alpha ", const QccWAVWavelet *" wavelet ", int " max_coefficient_bits ", int " target_bit_bit );.SH DESCRIPTION.SS Encoding.LP.B QccWAVklttce3DLosslessEncode()encodes an image cube,.IR image ,using a 3D generalization of the TCE algorithm that involvesa KLT transform in one dimension and a dyadic DWT in the other two.Both transforms are applied in a lossless, or reversible, fashion suchthat integers are mapped to integers. Consequently, lossless coding isachieved.See "ALGORITHM" below for more detail..LP.I imageis the image cube to be coded and.I bufferis the output bitstream..I buffermust be of.B QCCBITBUFFER_OUTPUTtype and opened via a prior call to.BR QccBitBufferStart (3)..LP.BR QccWAVklttce3DLosslessEncode ()first applies a reversible KLT (RKLT)in the spectral or temporal dimension of theimage cube; subsequently, a reversible dyadic DWT is applied spatially..IR num_levelsgive the number of levels of wavelet decomposition to perform..I waveletis the wavelet to use for decomposition..LP.BR QccWAVklttce3DLosslessEncode()uses.BR QccHYPrkltTrain (3),.BR QccHYPrkltFactorization (3),and.BR QccHYPrkltTransform (3)to train, factor, and apply, respectively, the spectral RKLT.Then,.BR QccWAVSubbandPyramid3DIntDWT (3)with zero temporal decomposition levelsis used to apply the integer-valued spatial DWT to each frame of the image cube..BR QccWAVklttce3DLosslessEncode()embeds the RKLT transform matrix into the output bitstream as overheadinformation..LPThe KLT+3D-TCE algorithm performance is in part throughthe parameter.IR alpha ,a value that gives the learning rate of the density-estimationprocess implemented by the tarp filter used in one ofthe coding passes of the TCE algorithm..LPThe bitstream output from the KLT+3D-TCE encoder is embedded, meaning thatany prefix of the bitstream can be decoded to give a valid, albeit lossy,representation of the image..LP.SS Decoding.LP.B QccWAVklttce3DLosslessDecodeHeader()decodes the header information in a bitstream previously produced by.BR QccWAVklttce3DLosslessEncode() .The input bitstream is.I bufferwhich must be of.B QCCBITBUFFER_INPUTtype and opened via a prior call to.BR QccBitBufferStart (3)..LPThe header information is returned in.I num_levels(number of levels of wavelet decomposition in the spatial directions),.I num_frames(size of the image cube in the temporal direction),.I num_rows(vertical size of image cube),.I num_cols(horizontal size of image cube),.I max_coefficient_bits(indicates the precision, in number of bits, of the wavelet coefficientwith the largest magnitude),and.I alpha(the value of the learning rate)..LP.B QccWAVklttce3DLosslessDecode()decodes the bitstream.IR buffer ,producing the reconstructed image cube,.IR image .The bitstream must already have had its header read by a prior callto.B QccWAVklttce3DLosslessDecodeHeader()(i.e., you call.B QccWAVklttce3DLosslessDecodeHeader() first and then.BR QccWAVklttce3DLosslessDecode() ).If.I target_bit_cntis.BR QCCENT_ANYNUMBITS ,then decoding stops when the end of the input bitstream is reached;i.e.,.IR imagewill be a lossless reconstruction of the original image.Otherwise, decoding stops when.I target_num_bitsfrom the input bitstream have been decoded whichwill produce a lossy representation that differs from theoriginally encoded image..SH "ALGORITHM"The original TCE algorithm (see.BR QccWAVtce3DLosslessEncode() )was developed for the lossy coding 2D images byTian and Hemami;it was latter extended to 3Dand made lossless via the incorporation of reversible transformsby Zhang.IR "et al" .Zhang.IR "et al" .considered two versions of lossless3D-TCE: one using a 3D wavelet transform (this isimplemented here as.BR QccWAVtce3DLosslessEncode (3) )and one with a hybrid transform consisting of a spectral KLT followedby a spatial dyadic DWT (i.e., KLT+3D-TCE as implemented by.BR QccWAVklttce3DLosslessEncode() )..SH "SEE ALSO".BR klttceencode3d (1),.BR klttcedecode3d (1),.BR QccWAVtce3DLosslessEncode (3),.BR QccHYPrkltTrain (3),.BR QccHYPrkltTransform (3),.BR QccHYPrklt (3),.BR QccWAVSubbandPyramid3DIntDWT (3),.BR QccBitBuffer (3),.BR QccPackWAV (3),.BR QccPackIMG (3),.BR QccPack (3).LPJ. Zhang, J. E. Fowler, and G. Liu,"Lossy-to-Lossless Compression of Hyperspectral Imagery Using3D-TCE and an Integer KLT," .IR "IEEE Geoscience and Remote Sensing Letters" ,vol. 5, pp. 814-818, October 2008.C. Tian and S. S. Hemami, "An Embedded Image Coding SystemBased on Tarp Filter with Classification," in.IR "Proceedings of the International Conference on Acoustics, Speech, and Signal Processing" ,Montreal, Quebec, Canada, May 2004, vol. 3, pp. 49-52..SH AUTHORCopyright (C) 1997-2009  James E. Fowler.\"  The programs herein are free software; you can redistribute them and/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 + =
减小字号Ctrl + -
显示快捷键?