Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
channel_invert

Returns the inverse of a channel. More...

Functions

template<typename Channel >
channel_traits< Channel >
::value_type 
boost::gil::channel_invert (Channel x)
 Default implementation. More...
 

Detailed Description

Returns the inverse of a channel.

result = max_value - x + min_value

Example:

// bits8 == uint8_t == unsigned char
bits8 x=255;
assert(inv == 0);

Function Documentation