
I see. Do you still have problems then? For the hsl color space, we
probably should have it for double ( hsl64f_pixel_t ), as well, I
suppose.
Christian
On Wed, Dec 16, 2009 at 4:24 AM, Eloi Du Bois
Thank you, you are totally right for hsl :). I didn't saw that... I found how to do what I need for other cases:
typedef pixel
::type, rgb_layout_t > rgb_pixel_t; 2009/12/15 Christian Henning
Hi Eloi,
for homogeneous pixel types ( like rgb8_pixel_t ) or packed_pixel types there is no bits member. Can you describe what you want in more detail? Also hsl pixel is only defined for 32f ( hsl32f_pixel_t ).
Regards, Christian
On Tue, Dec 15, 2009 at 11:01 AM, Eloi Du Bois
wrote: 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
::type hsl_pixel_t; hsl_pixel_t a; color_convert(A, a); } Thank you by advance, Eloi.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users