home *** CD-ROM | disk | FTP | other *** search
-
-
- This directory contains executable programs for compressing and
- decompressing fingerprint rasterfiles.
-
- Compression is accomplished by wavelet transforming the image and then
- vector quantizing each subband with a separate codebook. Since the most
- time-consuming part of vector quantization is the encoding of the individual
- data vectors in the codebook, a search technique (the "k-d tree"
- search) has been implemented for coding certain subbands. The use of this
- search is not necessary -- any search technique will work. The codevector
- indices are Huffman coded before transmission.
-
- In directory "bin" there are two executable programs which are
- compiled to run on a machine with a Sun 4 architecture, (e.g., a Sparcstation).
- "compress3", performs a compression on the rasterfile and outputs the
- coded image. "decompress3", expands a file that was output by compress3 to
- the size of the original image so that it can be displayed. For either of
- these programs to execute, it is necessary to have the requisite codebooks,
- Huffman coder tables and A-trees. These data are packed into a file that,
- for lack of a better term, is referred to as an "X-file". The codebooks
- (which in turn specify the Huffman coder trees and A-trees) are designed to
- realize a specific compression ratio. Included in the directory "xfiles"
- are X-files which realize compression ratios of 12, 16, 20 and 24.
-
-
- EXAMPLE: To compress the fingerprint file 107879.8m by a factor of 20
- type the following:
-
- compress3 107879.8m 107879.8m.C X20
-
- This compresses 107879.8m and puts the result in the file 107879.8m.C
- which should be about 1/20 the size of the original. (Using the original
- file name with a ".C" suffix to denote the compressed file is a convention
- that is used here but is not necessary. The output file can have any name
- the user desires). To decompress the file:
-
- decompress3 107879.8m.C 107879.8m.D X20
-
- The creates the file 107879.8m.D which is the same size as the original.
- The ".D" suffix denote a decompressed file, again, any file name will work
- for the output file
-
- Remarks:
-
- (1) The input to compress3 and output from decompress3 are raw
- image data files, i.e., the image is an array of unsigned
- characters stored by rows. This is the format of the
- fingerprint images supplied to Los Alamos by the FBI for
- the purpose of developing these algorithms. The algorithms
- will not operate with TIF files, Sun rasterfiles, or any
- other such image format.
-
- (2) At present the input image must be square and must be of a
- size divisible by 16, e.g., 512x512, 768x768, 160x160.
-
- (3) compress3 and decompress3 do not know which directory the
- X-files are in. To avoid typing the path name the user may
- wish to copy the X-file to the working directory (or create
- a symbolic link).
-
-
-