Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-11-01 07:02:53


Fernando Cacciola wrote:

> But is not even that. You are probably missing the fact that the "GIL
> element under discussion", which I suggested not to be documented as a
> color space, isn't a tuple of numbers at all. It's a tag.
> That is, the tuple of number which holds the component values is the
> pixel<> class.
> Incidentally, if one were to follow that wikipedia article, would
> conclude that pixel<> (being a tuple of color component values) would
> have to be renamed color_model<>, or just color<>, since model is
> implied in computer programs. And that's what I suggested (but I can see
> that the class is used in certain contexts were calling it color<> is
> wrong.)
>
> The thing that is documented as being a color space is the a tag class
> that is used inside pixel<>. That tag is just there to bind each tuple
> element to the corresponding component in a given color model so that
> the resulting thing, the "tagged pixel" can be considered as an instance
> of a color model.
> So IMO that tag class is representing a format.

Ok, those are good points (except for the bit where you are
disconnecting color-space from color-model). I must admit, I
missed that _tag_ thing.

Cheers,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk