Table of Contents

NAME

QccWAVSubbandPyramidZeroSubband, QccWAVSubbandPyramidSubtractMean, QccWAVSubbandPyramidAddMean - operations on subband pyramids

SYNOPSIS

#include "libQccPack.h"

int QccWAVSubbandPyramidZeroSubband(QccWAVSubbandPyramid *subband_pyramid, int subband);
int QccWAVSubbandPyramidSubtractMean(QccWAVSubbandPyramid *subband_pyramid, double *mean, const QccSQScalarQuantizer *quantizer);
int QccWAVSubbandPyramidAddMean(QccWAVSubbandPyramid *subband_pyramid, double mean);

DESCRIPTION

QccWAVSubbandPyramidZeroSubband() sets the coefficients of the specified subband in subband_pyramid to zero. subband is the subband number of the desired subband (see QccWAVSubbandPyramid(3) for more detail on addressing individual subbands in the subband-pyramid structure).

QccWAVSubbandPyramidSubtractMean() calculates the mean value of the coefficients of the baseband of subband_pyramid, optionally quantizes it with a scalar quantizer, and subtracts the result from the baseband coefficients. If quantizer is non-NULL, QccSQScalarQuantization(3) and QccSQScalarInverseQuantization(3) are called in succession to quantize the calculated mean, and this quantized mean is subtracted from the baseband coefficients in subband_pyramid. If quantizer is NULL, no quantization is performed so that the calculated mean is subtracted directly. If mean is non-NULL, the value subtracted from the coefficients (either the mean or the quantized mean) is returned as mean.

QccWAVSubbandPyramidAddMean() adds value mean to all baseband coefficients of subband_pyramid. It is intended to implement the reverse operation of QccWAVSubbandPyramidSubtractMean(), so mean would be returned from this latter routine in most cases.

RETURN VALUE

These routines return 0 on success, and 1 on failure.

SEE ALSO

QccSQScalarQuantization(3) , QccSQScalarInverseQuantization(3) , QccWAVSubbandPyramidDWT(3) , QccWAVSubbandPyramidInverseDWT(3) , QccWAVSubbandPyramid(3) , QccPackWAV(3) , QccPack(3)

M. Antonini, M. Barlaud, P. Mathieu, and I. Daubechies, "Image Coding Using Wavelet Transform," IEEE Transactions on Image Processing, vol. 1, pp. 205-220, April 1992.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



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