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 |
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)