Adobe Systems, Inc.

Color Space Converion
[Color Space]

Support for conversion between pixels of different color spaces and channel depths. More...

Classes

struct  detail::_color_converter< T1, C1, T2, C2 >
 Color Convertion function object. To be specialized for every src/dst color space. More...
struct  detail::_color_converter< T1, C, T2, C >
 When the color space is the same, color convertion performs channel depth conversion. More...
struct  detail::_color_converter< T1, C1, T2, rgba_t >
 Converting any pixel type to RGBA. More...
struct  detail::_color_converter< T1, cmyk_t, T2, gray_t >
 CMYK to Gray. More...
struct  detail::_color_converter< T1, cmyk_t, T2, rgb_t >
 CMYK to RGB (not the fastest code in the world). More...
struct  detail::_color_converter< T1, gray_t, T2, cmyk_t >
 Gray to CMYK. More...
struct  detail::_color_converter< T1, gray_t, T2, rgb_t >
 Gray to RGB. More...
struct  detail::_color_converter< T1, rgb_t, T2, cmyk_t >
 RGB to CMYK (not the fastest code in the world). More...
struct  detail::_color_converter< T1, rgb_t, T2, gray_t >
 RGB to Gray. More...
struct  detail::_color_converter< T1, rgba_t, T2, C2 >
 Converting RGBA to any pixel type. More...
struct  detail::_color_converter< T1, rgba_t, T2, rgba_t >
 Unfortunately RGBA to RGBA must be explicitly provided - otherwise we get ambiguous specialization error. More...
struct  color_converter< DST_P >
 converting one pixel to another (using the DST=SRC format) More...
struct  color_converter< DST_P >
 converting one pixel to another (using the DST=SRC format) More...

Functions

template<typename P1, typename P2>
void color_convert (const P1 &src, P2 &dst)
template<typename T>
detail::rgb_to_luminance (T r, T g, T b)
template<>
bits32f detail::rgb_to_luminance< bits32f > (bits32f r, bits32f g, bits32f b)

Detailed Description


Function Documentation

template<typename P1, typename P2>
void color_convert const P1 &  src,
P2 &  dst
 

converting one pixel to another

Definition at line 51 of file color_convert.hpp.

template<typename T>
T detail::rgb_to_luminance r,
g,
b
 

RGB to Gray.

ITU standard is 0.222*r + 0.707*g + 0.071*b Photoshop: red * .3 + green * .59 + blue * .11 + .5 optimized: (( ((boost::uint32_t)(red) * 4915) + ((boost::uint32_t)(green) * 9667) + ((boost::uint32_t)(blue) * 1802) + 8192) >> 14)

Definition at line 88 of file color_convert.hpp.

template<>
bits32f detail::rgb_to_luminance< bits32f > bits32f  r,
bits32f  g,
bits32f  b
 

float RGB to gray

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google