21 Jan
2009
21 Jan
'09
10:32 p.m.
Hi there, the interleaved_view_get_raw_dat takes a homogeneous view but not an any_image view. But there is a _dynamic_cast member in gil's variant which any_image is derived from. Though, if you know what you image type anyimage actually is you could this: typedef boost::mpl::vector<gray8_image_t, rgb8_image_t>::type my_img_types; any_image<my_img_types> runtime_image; rgb8_image_t& img = runtime_image._dynamic_cast<rgb8_image_t>(); unsigned char* data = interleaved_view_get_raw_data( view( img ) ); Untest, unfortuantely. :-/ Regards, Christian