Dali : Image Map -- C API

[ Header Files | Types | Allocation | Initialization | Use | Queries | See Also ]

Header Files

#include <dvmimap.h>

Type Definitions

ImageMap

An ImageMap performs lookup table operation on a ByteImage to another.

        typedef struct ImageMap {
            unsigned char table[256];
            int dimension;
        } ImageMap;
    
table
Table of lookup values. Value i will be mapped to table[i].
dimension
The intention of this slot is to indicate what type of ImageMap it is. The setting dimension=1 indicates that the ImageMap should be applied on one ByteImage, and is currently the only valid value.

Operators

Allocation

ImageMap *ImageMapNew()

void ImageMapFree (ImageMap *map)


Initialization

void ImageMapCopy (ImageMap *src, ImageMap *dest)

void ImageMapInit (ImageMap *map, unsigned char *values)

void ImageMapInitIdentity(Image *map)

void ImageMapInitInverse(Image *map)

void ImageMapInitHistoEqual(ByteImage *image, ImageMap *map)


Use

void ImageMapCompose (ImageMap *map1, ImageMap *map2, ImageMap *dest)

void ImageMapApply (ImageMap *map, ByteImage *src, ByteImage *dest)


Queries

unsigned char *ImageMapGetValues (ImageMap *map)


See Also

ByteImage , Color , GIF


Last updated : Saturday, November 14, 1998, 07:50 PM