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... | |
Returns the inverse of a channel.
result = max_value - x + min_value
Example:
|
inline |
#include <boost_1_57_0/boost/gil/channel_algorithm.hpp>
Default implementation.
Provide overloads for performance
References boost::geometry::detail::point_on_surface::max_value(), and boost::math::tools::min_value().
Referenced by 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()().