Table of Contents

NAME

QccWAVklttce3DEncode, QccWAVklttce3DDecode - encode/decode an image cube using the KLT+3D-TCE algorithm

SYNOPSIS

#include "libQccPack.h"

int QccWAVklttce3DEncode(const QccIMGImageCube *image, QccBitBuffer *buffer, int num_levels, double alpha, const QccWAVWavelet *wavelet, int target_bit_cnt);

int QccWAVklttce3DDecodeHeader(QccBitBuffer *buffer, int *num_levels, int *num_frames, int *num_rows, int *num_cols, int *max_coefficient_bits, double *alpha);

int QccWAVklttce3DDecode(QccBitBuffer *buffer, QccIMGImageCube *image, int num_levels, double alpha, const QccWAVWavelet *wavelet, int max_coefficient_bits, int target_bit_bit);

DESCRIPTION

Encoding

QccWAVklttce3DEncode() encodes an image cube, image, using a 3D generalization of the TCE algorithm that involves a KLT transform in one dimension and a dyadic DWT in the other two. See "ALGORITHM" below for more detail.

image is the image cube to be coded and buffer is the output bitstream. buffer must be of QCCBITBUFFER_OUTPUT type and opened via a prior call to QccBitBufferStart(3) .

QccWAVklttce3DEncode() first applies a KLT in the spectral or temporal dimension of the image cube; subsequently, a dyadic DWT is applied spatially. num_levels give the number of levels of wavelet decomposition to perform. wavelet is the wavelet to use for decomposition.

QccWAVklttce3DEncode() uses QccHYPkltTrain(3) and QccHYPkltTransform(3) to train and apply, respectively, the spectral KLT. Then, QccWAVSubbandPyramid3DDWT(3) with zero temporal decomposition levels is used to apply the spatial DWT to each frame of the image cube. QccWAVklttce3DEncode() embeds the KLT transform matrix into the output bitstream as overhead information.

The KLT+3D-TCE algorithm performance is in part through the parameter alpha, a value that gives the learning rate of the density-estimation process implemented by the tarp filter used in one of the coding passes of the TCE algorithm.

The bitstream output from the KLT+3D-TCE encoder is embedded, meaning that any prefix of the bitstream can be decoded to give a valid representation of the image. The KLT+3D-TCE encoder essentially produces output bits until the number of bits output reaches target_bit_cnt, the desired (target) total length of the output bitstream in bits, and then it stops. Note that this is the bitstream length in bits, not the rate of the bitstream (which would be expressed in bits per voxel).

Decoding

QccWAVklttce3DDecodeHeader() decodes the header information in a bitstream previously produced by QccWAVklttce3DEncode(). The input bitstream is buffer which must be of QCCBITBUFFER_INPUT type and opened via a prior call to QccBitBufferStart(3) .

The header information is returned in num_levels (number of levels of wavelet decomposition in the spatial directions), num_frames (size of the image cube in the temporal direction), num_rows (vertical size of image cube), num_cols (horizontal size of image cube), max_coefficient_bits (indicates the precision, in number of bits, of the wavelet coefficient with the largest magnitude), and alpha (the value of the learning rate).

QccWAVklttce3DDecode() decodes the bitstream buffer, producing the reconstructed image cube, image. The bitstream must already have had its header read by a prior call to QccWAVklttce3DDecodeHeader() (i.e., you call QccWAVklttce3DDecodeHeader() first and then QccWAVklttce3DDecode()). If target_bit_cnt is QCCENT_ANYNUMBITS, then decoding stops when the end of the input bitstream is reached; otherwise, decoding stops when target_num_bits from the input bitstream have been decoded.

ALGORITHM

The original TCE algorithm (see QccWAVtce3DEncode()) was developed for 2D images by Tian and Hemami; it was latter extended to 3D by Zhang et al. Zhang et al. considered two versions of 3D-TCE: one using a 3D wavelet transform (this is implemented here as QccWAVtce3DEncode(3) ) and one with a hybrid transform consisting of a spectral KLT followed by a spatial dyadic DWT (i.e., KLT+3D-TCE as implemented by QccWAVklttce3DEncode()).

SEE ALSO

klttceencode3d(1) , klttcedecode3d(1) , QccWAVtce3DEncode(3) , QccHYPkltTrain(3) , QccHYPkltTransform(3) , QccHYPklt(3) , QccWAVSubbandPyramid3DDWT(3) , QccBitBuffer(3) , QccPackWAV(3) , QccPackIMG(3) , QccPack(3)

J. Zhang, J. E. Fowler, and G. Liu, "Lossy-to-Lossless Compression of Hyperspectral Imagery Using 3D-TCE and an Integer KLT," IEEE Geoscience and Remote Sensing Letters, vol. 5, pp. 814-818, October 2008.

C. Tian and S. S. Hemami, "An Embedded Image Coding System Based on Tarp Filter with Classification," in Proceedings of the International Conference on Acoustics, Speech, and Signal Processing, Montreal, Quebec, Canada, May 2004, vol. 3, pp. 49-52.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads