#include <rgbhsl.hh>
Inheritance diagram for oln::convert::f_rgb_to_hsl< inbits, outbits >:
Public Member Functions | |
color< 3, outbits, hsl_traits > | doit (const color< 3, inbits, rgb_traits > &v) const |
Static Public Member Functions | |
std::string | name () |
#include <oln/basics2d.hh> #include <oln/convert/rgbhsl.hh> #include <ntg/all.hh> int main() { oln::image2d<ntg::rgb_8> lena_rgb = oln::load(IMG_IN "lena.ppm"); oln::image2d<ntg::hsl_8> lena_hsl = apply(oln::convert::f_rgb_to_hsl<8, 8>(), lena_rgb); oln::image2d<ntg::hsl_8>::iter_type it(lena_hsl); for_all(it) lena_hsl[it][ntg::hsl_L] = 127; oln::io::save(apply(oln::convert::f_hsl_to_rgb<8, 8>(), lena_hsl), IMG_OUT "oln_convert_f_rgb_to_hsl.pgm"); }
Definition at line 83 of file rgbhsl.hh.