ChannelConcept Struct Template Reference
[Concepts]
#include <gil_concept.hpp>
List of all members.
Detailed Description
template<typename T>
struct boost::gil::ChannelConcept< T >
A channel is the building block of a color. Color is defined as a mixture of primary colors and a channel defines the degree to which each primary color is used in the mixture.
For example, in the RGB color space, using 8-bit unsigned channels, the color red is defined as [255 0 0], which means maximum of Red, and no Green and Blue.
Built-in scalar types, such as int and float , are valid GIL channels. In more complex scenarios, channels may be represented as bit ranges or even individual bits. In such cases special classes are needed to represent the value and reference to a channel.
Channels have a traits class, channel_traits , which defines their associated types as well as their operating ranges.
concept ChannelConcept<typename T> : EqualityComparable<T> {
typename value_type = T;
typename reference = T&;
typename pointer = T*;
typename const_reference = const T&;
typename const_pointer = const T*;
static const bool is_mutable;
static T min_value();
static T max_value();
};
|
Public Member Functions |
void | constraints () |
Public Attributes |
T | c |
The documentation for this struct was generated from the following file:
|