Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::default_color_converter_impl< rgb_t, cmyk_t > Struct Template Reference

RGB to CMYK (not the fastest code in the world) More...

#include <color_convert.hpp>

Public Member Functions

template<typename P1 , typename P2 >
void operator() (const P1 &src, P2 &dst) const
 

Detailed Description

template<>
struct boost::gil::default_color_converter_impl< rgb_t, cmyk_t >

RGB to CMYK (not the fastest code in the world)

k = min(1 - r, 1 - g, 1 - b) c = (1 - r - k) / (1 - k) m = (1 - g - k) / (1 - k) y = (1 - b - k) / (1 - k)

Member Function Documentation


The documentation for this struct was generated from the following file: