
Hey guys,
I realized that writing to gil::color_converted_view doesn't affect the
underlying view's data. I wonder if that's correct?
For example, let's say that I want to write a program that will take the
value of the red channel and set the blue channel's value to half of that.
Here's my failed attempt:
template <typename SrcView>
void half_red_to_blue(SrcView & view)
{
// Since SrcView might be RGB or BGR or some other types,
// I decided to use a color_converted_view to ensure that I'm
// accessing the correct channels
type gil::color_converted_view_type