Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] Change layout type of a pixel...
From: Eloi Du Bois (eloi.du.bois_at_[hidden])
Date: 2009-12-16 10:48:23


> I see. Do you still have problems then?
No, it is okay, my code is working now :)

> For the hsl color space, we probably should have it for double (
hsl64f_pixel_t ), as well, I suppose.
Yes, that could be a good idea, but 32f is enough for our needs I think. But
good question, I will answer my friends what do they think of that
(according to their needs).

2009/12/16 Christian Henning <chhenning_at_[hidden]>

> 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 <eloi.du.bois_at_[hidden]>
> wrote:
> > 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<typename channel_type< Pixel >::type, rgb_layout_t >
> > rgb_pixel_t;
> >
> > 2009/12/15 Christian Henning <chhenning_at_[hidden]>
> >>
> >> 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 <eloi.du.bois_at_[hidden]>
> >> 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<hsl_t, Pixel::bits>::type hsl_pixel_t;
> >> > hsl_pixel_t a;
> >> > color_convert(A, a);
> >> > }
> >> >
> >> >
> >> > Thank you by advance,
> >> > Eloi.
> >> >
> >> > _______________________________________________
> >> > Boost-users mailing list
> >> > Boost-users_at_[hidden]
> >> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >> >
> >> _______________________________________________
> >> Boost-users mailing list
> >> Boost-users_at_[hidden]
> >> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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