Hi all,

I am wondering if it is posible to get a raw C pointer from an any_image / any_image_view. I tried this (taken from the tutorial):

typedef boost::mpl::vector<gray8_image_t, rgb8_image_t> my_img_types;
any_image<my_img_types> runtime_image;
jpeg_read_image(filename.toStdString().c_str(), runtime_image);
unsigned char* data = interleaved_view_get_raw_data( any_image_view<my_img_types>(runtime_image) );

And got the following errors:
/usr/include/boost/gil/extension/io/../dynamic_image/../../image_view_factory.hpp:95: error: 'value' is not a member of 'boost::gil::view_is_mutable< .................. >
error: no matching function for call to 'interleaved_view_get_raw_data(boost::gil::any_image_view< .................. >

As I am really not familiar with the MPL, I am certainly doing something bad. Hope you could help.

Regards,

Olivier

--
Olivier Tournaire
MATIS - Institut Géographique National
73, Ave de Paris
94165 St Mandé cedex, France

tel: (+33) 1 43 98 80 00 - 71 25
fax: (+33) 1 43 98 85 81