Hello,
I'm a bit confused about the source code snippet at
http://www.boost.org/doc/libs/1_36_0/libs/gil/doc/html/gildesignguide.html#I...
and especially, since I can't find any way to get that snippet compiled:
step3=color_converted_view(step2);
1.) What's the proper return type of color_converted_view in this example?
2.) Is the snippet above correct at all?, the template is defined as:
00181 template
00182 inline typename color_converted_view_type::type
00183 color_converted_view(const View& src) {
00184 return color_converted_view<DstP>(src,default_color_converter());
00185 }
in http://www.boost.org/doc/libs/1_36_0/libs/gil/doc/html/g_i_l_0221.html
So shouldn't it be color_converted_view?, with
pixel type first and view type second
Which leads me to the next question why is the type order swapped for the
return value type definition?
The following snippet:
rgb8_image_t img;
jpeg_read_image("bild.jpg", img);
jpeg_write_view("bild_transform.jpg",
color_converted_view(view(img)));
atleast outputs a properly grayscaled image, the original line from the
example obviously throws an error during compilation,
but I still like to know what the proper return type of color_converted_view
is.
Thanks for any help,
Stefan