Boost logo

Boost :

Subject: Re: [boost] [gil] undocumented/unintended concept requirements in color_convert
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-03-18 09:50:01

Hi Michael,

On Mon, Mar 18, 2013 at 12:28 AM, Michael Marcin <mike.marcin_at_[hidden]> wrote:
> I was trying to add other color spaces support and noticed that the rgb to
> cmyk converter contains:

In case you haven't noticed there are some more color spaces in the
toolbox which has been added to boost trunk.

> typedef typename channel_type<P2>::type T2;
> T2 x = channel_traits<T2>::max_value()-get_color(dst,black_t());
> if (x>0.0001f) {
> float x1 = channel_traits<T2>::max_value()/float(x);
> T2 should model:
> but this code additionally requires T2 to be greater-than comparable to
> float and convertible to float.

Do you propose to change gil_concept.hpp and just add those
requirements? By any chance do you have a patch?


Boost list run by bdawes at, gregod at, cpdaniel at, john at