Table of Contents

NAME

imgdpcmencode, imgdpcmdecode - encode and decode an image using DPCM

SYNOPSIS

imgdpcmencode [-p predictor] imgfile quantizers... channels...

imgdpcmdecode [-p predictor] imagewidth imageheight quantizers... channels... imgfile

OPTIONS

-p predictor
Predictor code to be used for DPCM. The default code is 2.

DESCRIPTION

imgdpcmencode encodes an image using two-dimensional DPCM. DPCM encoding is accomplished by calling QccIMGImageDPCMEncode(3) ; essentially, DPCM is applied to each image component (Y, U, V) separately. A separate channel file (CHN format) is output for each component.

imgdpcmdecode performs decoding of channels produced by imgdpcmencode(1) , outputting the reconstructed image to imgfile. imgdpcmdecode can produce grayscale (PGM) or color (PPM) images. In the case of color images, DPCM decoding is applied to each image component (Y, U, V) separately.

For color images, imgdpcmencode and imgdpcmdecode expect to be given three scalar quantizers, one for each of the Y, U, and V components, respectively, of the image. Additionally, channel indices are written to or read from three separate channel files (channels). For grayscale images, only one quantizer and one channel need be specified.

The -p option specifies the predictor code to be used. See QccIMGImageDPCMEncode(3) for valid values.

SEE ALSO

QccIMGImageDPCMEncode(3) , QccIMGImageDPCMDecode(3) , QccIMGImage(3) , QccPackIMG(3) , QccPack(3)

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

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



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