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

📄 spihtencode.1

📁 该文件是小波信源编码SPIHT算法的C语言代码
💻 1
字号:
.TH SPIHTENCODE 1 "QCCPACK" "".SH NAMEspihtencode, spihtdecode \-encode/decode an image using the SPIHT algorithm.SH SYNOPSIS.sp.B spihtencode.RB "[\|" \-w.IR  wavelet "\|]".RB "[\|" \-b.IR  boundary "\|]".RB "[\|" \-pw.IR  pcpfile "\|]".RB "[\|" \-nl.IR  num_levels "\|]".RB "[\|" \-noac "\|]".RB "[\|" \-m.IR  mask "\|]".RB "[\|" \-rd.IR  rd_file "\|]".RB "[\|" \-vo "\|]".I rate.I imgfile.I bitstream.LP.B spihtdecode.RB "[\|" \-w.IR  wavelet "\|]".RB "[\|" \-b.IR  boundary "\|]".RB "[\|" \-pw.IR  pcpfile "\|]".RB "[\|" \-m.IR  mask "\|]".RB "[\|" \-r.IR  rate "\|]".I bitstream.I imgfile.SH OPTIONS.TP.BI \-w " wavelet"String. Name of the wavelet file.RB ( FBKor.B LFTformat); default = "CohenDaubechiesFeauveau.9-7.lft".TP.BI \-b " boundary"String. Type of boundary extension; default = "symmetric"..TP.BI \-pw " pcpfile"String. Name of file containing perceptual weights..TP .BI \-nl " num_levels"Integer. Number of levels of dyadic decomposition; default value is 5 levels..TP.B \-noacDo not use arithmetic coding during encoding;i.e., produce "binary-uncoded" output.Default is to use arithmetic coding..TP.BI \-m " mask"String. Name of file containing the transparency mask forshape-adaptive coding. Default is to not use a mask..TP.BI \-rd " rd_file"String. Name of file to which to output the rate-distortion profile.Default is to not output the rate-distortion profile..TP.BI \-r " rate"Float. Rate at which to stop decoding. Default is to decode untilend of input bitstream is reached..TP.B \-voPrint only the value of the rate to stdout (terse output);default is verbose output..SH DESCRIPTION.LP.B spihtencodecodes an image,.IR imgfile ,using the Set Partitioning In Hierarchical Trees (SPIHT)algorithm by Said and Pearlman.The SPIHT algorithm involves a 2D DWT followed by a progressive "bit-plane" coding of the wavelet coefficients using azerotree-like quantization structure..LPThe transform is either the usual discretewavelet transform (DWT) or a shape-adaptiveDWT (SA-DWT); see.BR imgdwt (1)for complete details.Option.B \-wspecifies the wavelet, option.B \-bspecifies the boundary extension, and option.B \-pwindicates whether perceptual weighting is to be used.The.B \-moption gives the image file to be used as a transparency maskfor the SA-DWT..I maskmust be a grayscale imagein which black in this image indicates transparency, whiteindicates full opacity, and gray tones are degrees oftranslucence(see.BR QccAlpha (3)).If the.B \-moption is not given, the usual DWT is used..LPThe desired bitrate of the output.I bitstreamis specified by.IR rate ,which is expressed in bits per pixel of the original image..B spihtencodenormally prints to stdout a small amount of informationconcerning this target bitrate and the actual bitrate achieved.Usually these rates are identical, but may differ slightly.If the .B \-vo(value-only) option is given, all printed output is suppressed except forthe actual bitrate..LPThe SPIHT algorithm normallyuses arithmetic coding of symbols as a final output stepto improve coding efficiency.  Alternatively, arithmetic coding can besuppressed, producing what is called "binary-uncoded"output..B spihtencodesupports both arithmetic-coded and binary-uncoded output modes. If option.B \-noacis specified, no arithmetic coding is used (i.e., binary-uncoded output).Otherwise, the output is arithmetic-coded..LPNote: the SPIHT algorithm as described originally by Said and Pearlmanin their ITCSVT paperdoes not employ perceptual weighting as allowed by.B spihtencode(the.B \-pwoption).  Refer to.BR imgdwt (1)and.BR QccWAVPerceptualWeights (3)for details on the implementation of perceptual weighting.Additionally, note that the concept ofshape-adaptive coding arose in the recent MPEG-4 standardand was not considered in the original work by Said andPearlman..LPThe.B \-rdoption is used to provide the name of the file to which to output therate-distortion profile.Briefly, the rate-distortion profile is a collection of numerouspoints on the rate-distortion curve that is estimated during encodingfrom distortion calculations in the wavelet-domain; see.BR QccSPIHTEncode (3)for more details on the calculations involved.If the.B \-rdoption is not given, no rate-distortion profile is output..LP.B spihtdecodeperforms the corresponding decoding using the SPIHT algorithm, decodingthe.I bitstreammade by.B spihtencodeand producinga reconstructed image,.IR imgfile .For sane results, .IR wavelet ,.IR boundary ,and.I pcpfileshould be the same as they were for.BR spihtencode ,and.I maskshould be the same if an SA-DWT was used as the transform..B spihtdecodeautomatically determines whether arithmetic decoding is needed or not.If a decoding rate is specified with the.B \-roption, then.B spihtdecodestops decoding when.I ratebits per pixel from the input bitstreamhave been decoded. Otherwise, decoding stops when theend of the input bitstream is reached..LP.BR spihtencodeand.BR spihtdecodecall.BR QccSPIHTEncode (3)and.BR QccSPIHTDecode (3),respectively, to perform SPIHT encoding and decoding.Refer to the man pages for these functions for more informationon the details of the QccPack implementation of the SPIHT algorithmand how it compares to the original SPIHT coder developed bySaid and Pearlman for their results..SH "SEE ALSO".BR QccSPIHTEncode (3),.BR QccSPIHTDecode (3),.BR imgdwt (1),.BR QccWAVPerceptualWeights (3),.BR QccWAVSubbandPyramid (3),.BR QccPackWAV (3),.BR QccPackIMG (3),.BR QccPack (3)A. Said and W. A. Pearlman,"A New, Fast, and Efficient Image Codec Basedon Set Partitioning in Hierarchical Trees,".IR "IEEE Transactions on Circuits and Systems for Video Technology" ,vol. 6, no. 3, pp. 243-250, June 1996..SH AUTHORCopyright (C) 1997-2008  James E. Fowler.SH LICENSEThe Set Partitioning In Hierarchical Trees (SPIHT) algorithm is protectedby US Patent #5,764,807 (issued June 9, 1998), US Patent #6,674,911 (issuedJanuary 6, 2004), and other international patents and patents pending. Animplementation of the SPIHT algorithm is included herein (utility programsspihtencode and spihtdecode, and spiht.c in the QccPackSPIHT module of theQccPack library) with the permission of PrimaComp, Inc., exclusive holderof patent rights. PrimaComp has graciously granted a license with certainrestrictions governing the terms and conditions for use, copying,distribution, and modification of the SPIHT algorithm implementationcontained herein. Specifically, only use in academic and non-commercialresearch is permitted, while all commercial use is prohibited.  Refer tothe file LICENSE-SPIHT for more details.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -