Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::ChannelConcept< T > Struct Template Reference

Channel CONCEPTS. More...

#include <gil_concept.hpp>

Collaboration diagram for boost::gil::ChannelConcept< T >:

Public Member Functions

void constraints ()
 

Public Attributes

T c
 

Detailed Description

template<typename T>
struct boost::gil::ChannelConcept< T >

Channel CONCEPTS.

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; // use channel_traits<T>::value_type to access it
typename reference = T&; // use channel_traits<T>::reference to access it
typename pointer = T*; // use channel_traits<T>::pointer to access it
typename const_reference = const T&; // use channel_traits<T>::const_reference to access it
typename const_pointer = const T*; // use channel_traits<T>::const_pointer to access it
static const bool is_mutable; // use channel_traits<T>::is_mutable to access it
static T min_value(); // use channel_traits<T>::min_value to access it
static T max_value(); // use channel_traits<T>::min_value to access it
};

Member Function Documentation

Member Data Documentation

template<typename T >
T boost::gil::ChannelConcept< T >::c

The documentation for this struct was generated from the following file: