Generic Image Library: Algorithms and Utility Functions

Modules | Alphabetical List | Class List | Directories | File List | GIL Home Page

# Algorithms and Utility Functions
[Channel]

## Detailed Description

Channel algorithms, metafunctions and utility functions.

## Modules

| channel_convert

Converting from one channel type to another

Conversion is done as a simple linear mapping of one channel range to the other, such that the minimum/maximum value of the source maps to the minimum/maximum value of the destination. One implication of this is that the value 0 of signed channels may not be preserved!

| channel_multiply
| Multiplying unsigned channel values of the same type. Performs scaled multiplication result = a * b / max_value.

| channel_invert
| Returns the inverse of a channel. result = max_value - x + min_value.

## Classes

struct | channels_are_compatible
| Predicate metafunction returning whether two channels are compatible Channels are considered compatible if their value types (ignoring constness and references) are the same. More...