
28 Jan
2013
28 Jan
'13
3:12 p.m.
Hi,
On Mon, Jan 28, 2013 at 9:53 AM, TONGARI
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