
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