Boost logo

Boost :

From: Christian Henning (chhenning_at_[hidden])
Date: 2008-04-29 21:01:34


Hi John,

>
> What I would like is a way to read_and_convert to an any_image class, so
> that the 'best' conversion from the file data to the format of one of my
> image types is chosen.
>
> For hypothetical example, if the file would optimally choose a gray16
> planar image, but I pass any_image<mpl::vector<rgb8_image_t,
> gray8_image_t> > to read_image, then I want the read_image function to
> create a gray8_image_t and convert the pixels to that.
>
> I dont know how it would be done, but that would be a nice feature.

Yeah, sounds like a nice feature. I will make a mark in my todo list.
Before I could tackle that I would need to overcome my template
instantiation issue. I cannot even compile with MSVC 7.1. It's
complaining:

 fatal error C1055: compiler limit : out of keys

I think I need to seriously rethink the design.

>
> I think the other thing would be for each image format to have its own
> image_types typedef, to that I can read into an image variant that is
> perfect for the reader.
>

Not sure if I follow here.

Thanks for your input,
Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk