29 Jan
2009
29 Jan
'09
3:50 p.m.
Olivier,
you can cast the any_image to any of the images you specified. Then
you can easily apply the nth_channel_view() function. Something like
this:
typedef mpl::vector< gray8_image_t
, rgb8_image_t
>::type my_img_types_t;
typedef nth_channel_view_type< rgb8_image_t::view_t >::type channel_view_t;
any_image< my_img_types_t > runtime_image;
rgb8_view_t v( view( runtime_image._dynamic_cast