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: Derek Gerstmann
Subject: Re: [Openexr-devel] Help: How to Read in an OpenEXR Image
Date: Tue, 24 Aug 2004 10:45:00 -0600
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)

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;

...

If that still doesn't get you going, you can check out the source
for Spawner, my evolutionary computer graphics framework which
uses OpenEXR.

Grab it here:
http://home.myuw.net/dgerstma/content/graphics/programs/spawner.shtml

The files you'll be interested in are:
./source/ExrImage.h
./source/ExrImage.cpp

...

Cheers!

-[dg]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Derek Gerstmann                                     address@hidden
MSc Computer Animation                  NCCA - Bournemouth University
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




reply via email to

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