openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] Help: How to Read in an OpenEXR Image


From: Florian Kainz
Subject: Re: [Openexr-devel] Help: How to Read in an OpenEXR Image
Date: Thu, 26 Aug 2004 19:24:29 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Derek Gerstmann wrote:
Kevin Erickson wrote:

I was wondering if anyone has an example of how to read in an OpenEXR image. I am a student and new to this image format, I have read the documentation on this but the documentation examples do not address what headers need to be included to accomplish this.


The examples on the OpenEXR webpage do an excellent job of explaining
this.

Check out the following:
http://www.openexr.org/api.html

...

As far as declarations in c++, you'll need the following:

#include <ImfInputFile.h>
#include <ImfOutputFile.h>
#include <ImfChannelList.h>
#include <ImfFrameBuffer.h>
#include <ImfStringAttribute.h>
#include <half.h> // optional if you're not using the half datatype

using namespace Imf;
using namespace Imath;

...


The OpenEXR source package contains a subdirectory, IlmImfExamples,
with compilable versions of the programming examples given in the
api.html document, with #include statements for all necessary header
files.

Florian







reply via email to

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