|
Boost Users : |
Subject: [Boost-users] [GIL] Change layout type of a pixel...
From: Eloi Du Bois (eloi.du.bois_at_[hidden])
Date: 2009-12-15 11:01:42
Hi all,
I would like to know how to change the layout of a given pixel type.
For example, I would like to do something like:
// Pixel = rgb16_pixel_t for example.
template<class Pixel>
void foo(Pixel & A) {
typedef typename pixel<hsl_t, Pixel::bits>::type hsl_pixel_t;
hsl_pixel_t a;
color_convert(A, a);
}
Thank you by advance,
Eloi.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net