NAME
map.c - inplace image mapping and related functionality
SYNOPSIS
i_map(srcimage, coeffs, outchans, inchans)
DESCRIPTION
Converts images from one format to another, typically in this case for converting from RGBA to greyscale and back.
- i_map(im, mapcount, maps, chmasks)
-
maps im inplace into another image.
Each map is a unsigned char array of 256 entries, its corresponding channel mask is the same numbered entry in the chmasks array. If two maps apply to the same channel then the second one is used. If no map applies to a channel then that channel is not altered. mapcount is the number of maps.
SEE ALSO
Imager(3)
AUTHOR
Arnar M. Hrafnkelsson <addi@umich.edu>