From: Lubomir Bourdev (lbourdev_at_[hidden])
Date: 2007-04-30 22:26:15
I looked at your code and it looks great. Thanks! (though I haven't
verified the formulas).
One suggestion: It is trivial to make it work for any HSB channel (not
Simply channel_convert from the source to your intermediate format
(bits32f) and then channel_convert the result back to the destination.
For improved performance, in the future we can add specializations for
concrete channel types that could use shortcut formulas, but for now
converting to/from float should be fine.
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-
> bounces_at_[hidden]] On Behalf Of Christian Henning
> Sent: Monday, April 30, 2007 6:04 AM
> To: boost_at_[hidden]
> Subject: [boost] [gil] added hsl color space to gil
> Hi guys, I have added the HSL color space as an extension to gil. The
> code is structured similar to other color spaces, like rgb. You can
> get the code at
> To construct a hsl view from a rgb image use the gil way:
> color_converted_view<hsl32f_pixel_t>( rgb_view, hsl_view );
> The other way around would be:
> color_converted_view<rgb8_pixel_t>( hsl_view, rgb_view );
> So far, there is only hsl32f_xxx_t possible. But I think that's OK for
> a start.
> Please let me know what you think. Next will be the HSV color space.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk