Table of Contents
QccPackVQ - QccPack module for vector quantization
QccPackVQ
provides a collection of library routines and utility programs for vector
quantization.
- no documentation at this time -
- sqtocbk(1)
- convert from scalar quantizer to VQ codebook format
- gla(1)
- train codebooks for vector quantization using the generalized
Lloyd algorithm
- vqencode(1)
- encoding using vector quantization
- vqdecode(1)
- vector-quantization decoding
- ecvqtrain(1)
- train codebooks for entropy-constrained
- ecvqencode(1)
- encoding using entropy-constrained vector quantization (ECVQ)
In general, each file format starts with an ASCII header
followed by ASCII or binary data. The ASCII header starts with a magic
number, and can be followed with any amount of white space (blanks, `\t'
(tab), `\n' (newline), `\r' (carriage return)) and/or comments lines (lines
starting with "#"). Following this white space, each format has a varying
amount of header information in ASCII. This ASCII header information is
separated by blanks and newlines. The data follows this ASCII header information.
Note: if the data is in binary, one (and only one) newline must follow
the last component of ASCII header information. If the data is ASCII, components
of the data are separated with blanks and/or newlines.
- CBK - VQ codebook
format
-
CBKX.X
<white space>
N
dim
w11 w12 w13...
w21 w22 w23...
.
.
.
p1 p2 p3...
where CBK is the magic
number, X.X is the revision number, <white space> is white space and/or
comment lines, N is the number of codewords the file contains,
dim is the number of components each codeword contains (vector
dimension), wij is the jth component of the ith codeword, and pi is
the probability of the ith codeword. N and dim are integers. wij and
pi are floats. N and dim are stored in ASCII, wij and pi as binary
(4 bytes, MSB first). No white space may exist between the wij's or the
pi's.
gla(1)
, vqencode(1)
, vqdecode(1)
, ecvqtrain(1)
, ecvqencode(1)
,
QccPackENT(3)
, QccPackSQ(3)
, QccPackAVQ(3)
, QccPackIMG(3)
, QccPackWAV(3)
,
QccPack(3)
Copyright (C) 1997-2021 James E. Fowler
Table of Contents