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

GIL default color space conversions. More...

#include <functional>
#include "gil_config.hpp"
#include "channel_algorithm.hpp"
#include "pixel.hpp"
#include "gray.hpp"
#include "rgb.hpp"
#include "rgba.hpp"
#include "cmyk.hpp"
#include "metafunctions.hpp"
#include "utilities.hpp"
#include "color_base_algorithm.hpp"
Include dependency graph for color_convert.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::gil::channel_type< P >
 
struct  boost::gil::default_color_converter_impl< C1, C2 >
 COLOR SPACE CONVERSION. More...
 
struct  boost::gil::default_color_converter_impl< C, C >
 When the color space is the same, color convertion performs channel depth conversion. More...
 
struct  boost::gil::detail::rgb_to_luminance_fn< RedChannel, GreenChannel, BlueChannel, GrayChannelValue >
 red * .3 + green * .59 + blue * .11 + .5 More...
 
struct  boost::gil::detail::rgb_to_luminance_fn< uint8_t, uint8_t, uint8_t, GrayChannelValue >
 
struct  boost::gil::default_color_converter_impl< gray_t, rgb_t >
 Gray to RGB. More...
 
struct  boost::gil::default_color_converter_impl< gray_t, cmyk_t >
 Gray to CMYK. More...
 
struct  boost::gil::default_color_converter_impl< rgb_t, gray_t >
 RGB to Gray. More...
 
struct  boost::gil::default_color_converter_impl< rgb_t, cmyk_t >
 RGB to CMYK (not the fastest code in the world) More...
 
struct  boost::gil::default_color_converter_impl< cmyk_t, rgb_t >
 CMYK to RGB (not the fastest code in the world) More...
 
struct  boost::gil::default_color_converter_impl< cmyk_t, gray_t >
 CMYK to Gray. More...
 
struct  boost::gil::default_color_converter_impl< C1, rgba_t >
 Converting any pixel type to RGBA. More...
 
struct  boost::gil::default_color_converter_impl< rgba_t, C2 >
 Converting RGBA to any pixel type. More...
 
struct  boost::gil::default_color_converter_impl< rgba_t, rgba_t >
 Unfortunately RGBA to RGBA must be explicitly provided - otherwise we get ambiguous specialization error. More...
 
struct  boost::gil::default_color_converter
 class for color-converting one pixel to another More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::gil
 
 boost::gil::detail
 

Functions

template<typename GrayChannel , typename RedChannel , typename GreenChannel , typename BlueChannel >
channel_traits< GrayChannel >
::value_type 
boost::gil::detail::rgb_to_luminance (const RedChannel &red, const GreenChannel &green, const BlueChannel &blue)
 
template<typename Pixel >
channel_type< Pixel >::type boost::gil::detail::alpha_or_max_impl (const Pixel &p, mpl::true_)
 
template<typename Pixel >
channel_type< Pixel >::type boost::gil::detail::alpha_or_max_impl (const Pixel &, mpl::false_)
 
template<typename Pixel >
channel_type< Pixel >::type boost::gil::alpha_or_max (const Pixel &p)
 
template<typename SrcP , typename DstP >
void boost::gil::color_convert (const SrcP &src, DstP &dst)
 helper function for converting one pixel to another using GIL default color-converters where ScrP models HomogeneousPixelConcept DstP models HomogeneousPixelValueConcept More...
 

Detailed Description

GIL default color space conversions.

Author
Lubomir Bourdev and Hailin Jin
Adobe Systems Incorporated
Date
2005-2007
Last updated on January 30, 2007

Support for fast and simple color conversion. Accurate color conversion using color profiles can be supplied separately in a dedicated module