boost::gil::default_color_converter_impl<rgb_t, cmyk_t>
RGB to CMYK (not the fastest code in the world)
Synopsis
Declared in <boost/gil/color_convert.hpp>
template<>
struct default_color_converter_impl<rgb_t, cmyk_t>;
Description
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) where 1 denotes max value of channel type of destination pixel.
The conversion from RGB to CMYK is based on CMY‐>CMYK (Version 2) from the Principles of Digital Image Processing ‐ Fundamental Techniques by Burger, Wilhelm, Burge, Mark J. and it is a gross approximation not precise enough for professional work.
Member Functions
Name |
Created with MrDocs