alicevision / QtOIIO

Qt Image IO plugin based on OpenImageIO.
http://www.openimageio.org
Other
41 stars 14 forks source link

Mutlichannel EXR #7

Open melMass opened 6 years ago

melMass commented 6 years ago

Hello,

I'm trying to implement ImageIO in a Qt app. I've found this repo but reading the source it seems to be tailored specifically for use in Meshroom (depthmap detection) and limited to 4 channels or else it fails. Is there a simple way to extract multichannel exrs using QtOIIO as a start ?

Thanks

melMass commented 6 years ago

I think the best thing is to add a QImageIO aswell (to add OIIO specific functions), I'll dig more and report here.

The ugly patch to load the first RGBA of >4 channels EXR's: QtOIIOHandler.cpp#L112

fabiencastan commented 6 years ago

We would love to have a generic solution. It contains some stuff to provide display for better visualisation of gray scale images, which could make sense in other contexts. Currently, the way to enable it is based on filename rules linked to Meshroom, as we have not yet found a way to use parameters when loading images.

If you are interested, we would be happy to integrate new contributions to support more options and make it more generic.

melMass commented 6 years ago

Thanks! I'm not sure about the proper way to go about it. I will try to come up with something to allow parameters. Subclassing QImage to either QImageIO or QImageOIIO is for now the only way I can think of to allow params.