openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Gray layers


From: Gerhard Huber
Subject: Re: [Openexr-devel] Gray layers
Date: Wed, 06 Nov 2013 10:13:49 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

 

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]