Image Map Package


Package Name

DvmImap

Description

An ImageMap is a lookup-table used to map the pixel values of a byte image. The table associates each pixel intensity value (0..255) with a mapped intensity value (also 0..255). An ImageMap is then applied to a ByteImage, altering the image's pixel intensity values. For example, if if the map specfies that 0 maps to 255, 1 maps to 254,  2 maps to 253, etc., then that ImageMap reverses light and dark in any image to which it is applied.

ImageMaps can be used to perform functions such as histogram equalization (equalizing the distribution of intensity values), contrast and brightness enhancement, gamma correction, etc. The GIF package uses ImageMaps to represent color tables, as does the Color package (for color quantization).

Detailed Specification

Tcl specification
C API specification

Dependencies

Needs DvmBasic

Example

Using ImageMap to decode GIF Files [C | Tcl]


Last Updated :

Copyright © 1997-1998 by Cornell University. See the file license.txt for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.