Information
MediaSupport
RSSOther Adobe ProjectsOther Resources |
Color Space ConverionSupport 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> | |
T | detail::rgb_to_luminance (T r, T g, T b) |
template<> | |
bits32f | detail::rgb_to_luminance< bits32f > (bits32f r, bits32f g, bits32f b) |
|
converting one pixel to another
Definition at line 51 of file color_convert.hpp. |
|
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. |
|
float RGB to gray
|