As Peter points out. You should be able to read this file just fine. You will have to introspect the file to work exactly what channels are present, names & data types, and insert the corresponding slices. You should be able to use the InputFile class to read your data.
- Piotr ________________________________ From: [email protected] [[email protected]] on behalf of Gerhard Huber [[email protected]] Sent: 06 November 2013 01:13 To: Peter Hillman Cc: OpenEXR Devel List Subject: Re: [Openexr-devel] Gray layers What are your channels called? (perhaps send the channel list output from exrheader) If your channels are named something like: gray1.A gray2.A you may be able to use RgbaInputFile specifying gray1 or gray2 as a layer name. To read all three layers, you'd have to read the file three times. In any case, the best approach would be to use the general interface for reading an image file, rather than the Rgba interface. The "ReadingAndWritingImageFiles" PDF gives examples of this. This would allow you to read all the layers you want in one go. no, the channel names have no appendix, the name is just gray1, gray2 and so on. The layers are mixed, so the stacking is like this rgba1.B, rgba1.G, rgba1.R, rgba2.B, rgba2.G, rgba2.R, gray1, rgba3.B, rgba3.G, rgba3.R, grau2 and so on. Gerhard I have here a EXR file that contains RGBA layers and Gray layers. Should it be possible to read such files with the lib? I tried with an RgbaInputFile and an MultiPartInputFile, both didn't read the gray layers.
_______________________________________________ Openexr-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/openexr-devel
