$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [GIL] Why does 'get_color' take a tag object instead of its type only?
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-01-28 10:12:08
Hi,
On Mon, Jan 28, 2013 at 9:53 AM, TONGARI <tongari95_at_[hidden]> wrote:
> Hi there,
>
> I'm curious of why gil::get_color(pixel, tag) is defined that way.
> Any need to take the tag value?
>
> If not, I'd prefer gil::get_color<Tag>(pixel) or just gil::get<Tag>(pixel)
> or even Tag::get(pixel).
You can use the "at_c" function.
rgb8_pixel_t p( 10, 20, 30);
unsigned char c = at_c<0>( p );
assert( c == 10 );
>
> And if possible, I hope GIL would just make pixel a Fusion sequence.
>
I'm very interested in ideas to improve gil! Since I'm not familiar
with a fusion sequence could you elaborate a little further.
Regards,
Christian