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;
...