Table of Contents

NAME

QccIMGImageComponentScalarQuantize, QccIMGImageComponentInverseScalarQuantize, QccIMGImageScalarQuantize, QccIMGImageInverseScalarQuantize, - scalar quantization of images and image components

SYNOPSIS

#include "libQccPack.h"

int QccIMGImageComponentScalarQuantize(const QccIMGImageComponent *image_component, const QccSQScalarQuantizer *quantizer, QccVector distortion, QccChannel *channel);
int QccIMGImageComponentInverseScalarQuantize(const QccChannel *channel, const QccSQScalarQuantizer *quantizer, QccIMGImageComponent *image_component);

int QccIMGImageScalarQuantize(const QccIMGImage *image, const QccSQScalarQuantizer *quantizers, QccChannel *channels);
int QccIMGImageInverseScalarQuantize(const QccChannel *channels, const QccSQScalarQuantizer *quantizers, QccIMGImage *image);

DESCRIPTION

QccIMGImageComponentScalarQuantize() calls QccSQScalarQuantization(3) for each pixel in image_component, effectively scalar quantizing the pixel with quantizer. The resulting quantization indices are returned in channel which must be allocated prior to calling QccIMGImageComponentScalarQuantize(). If distortion is not NULL, the squared-error distortion between each pixel and its quantized reconstruction is returned in distortion.

QccIMGImageComponentInverseScalarQuantize() inverse quantizes the quantization indices in channel, reconstructing the pixels which are returned in image_component.

QccIMGImageScalarQuantize() and QccIMGImageInverseScalarQuantize() call QccIMGImageComponentScalarQuantize() and QccIMGImageComponentInverseScalarQuantize(), respectively, for each of the Y, U, and V components of image. quantizers and channels are arrays of quantizers and channels, one for each image component.

RETURN VALUE

These routines return 0 on success, 1 on failure.

SEE ALSO

QccSQScalarQuantization(3) , QccSQInverseScalarQuantization(3) , QccIMGImageComponent(3) , QccIMGImage(3) , QccChannel(3) , QccPackIMG(3) , QccPack(3)

A. K. Jain, Fundamentals of Digital Image Processing. Englewood Cliffs, NJ: Prentice Hall, 1989.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



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