TuttleOFX
1
|
Returns the inverse of a channel. result = max_value - x + min_value. More...
Functions | |
template<typename Channel > | |
channel_traits< Channel > ::value_type | boost::gil::channel_invert (Channel x) |
Default implementation. Provide overloads for performance. |
Returns the inverse of a channel. result = max_value - x + min_value.
Example:
// bits8 == uint8_t == unsigned char bits8 x=255; bits8 inv = channel_invert(x); assert(inv == 0);
channel_traits<Channel>::value_type boost::gil::channel_invert | ( | Channel | x | ) | [inline] |
Default implementation. Provide overloads for performance.
Definition at line 473 of file channel_algorithm.hpp.
References terry::max_value().
Referenced by terry::copy_and_convert_alpha_blended_pixels(), terry::color::channel_invert_t< Channel >::operator()(), boost::gil::default_color_converter_impl< rgb_t, cmyk_t >::operator()(), boost::gil::default_color_converter_impl< cmyk_t, rgb_t >::operator()(), and boost::gil::default_color_converter_impl< cmyk_t, gray_t >::operator()().