Questions tagged [openexr]

OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications.

OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications.

OpenEXR is used by ILM on all motion pictures currently in production. The first movies to employ OpenEXR were Harry Potter and the Sorcerers Stone, Men in Black II, Gangs of New York, and Signs. Since then, OpenEXR has become ILM's main image file format.

OpenEXR's features include:

  • Higher dynamic range and color precision than existing 8- and 10-bit image file formats.
  • Support for 16-bit floating-point, 32-bit floating-point, and 32-bit integer pixels. The 16-bit floating-point format, called "half", is compatible with the half data type in NVIDIA's Cg graphics language and is supported natively on their new GeForce FX and Quadro FX 3D graphics solutions.
  • Multiple lossless image compression algorithms. Some of the included codecs can achieve 2:1 lossless compression ratios on images with film grain.
  • Extensibility. New compression codecs and image types can easily be added by extending the C++ classes included in the OpenEXR software distribution. New image attributes (strings, vectors, integers, etc.) can be added to OpenEXR image headers without affecting backward compatibility with existing OpenEXR applications.

ILM has released OpenEXR as free software. The OpenEXR software distribution includes:

  • IlmImf, a library that reads and writes OpenEXR images.
  • Half, a C++ class for manipulating half values as if they were a built-in C++ data type.
  • Imath, a math library with support for matrices, 2d- and 3d-transformations, solvers for linear/quadratic/cubic equations, and more.
  • exrdisplay, a sample application for viewing OpenEXR images on a display at various exposure settings.

The OpenEXR software distribution is now licensed under the modified BSD license.1

Attribution and Source Material

103 questions
2
votes
1 answer

convert Flycapture2 Image to float*

I am trying to save Flycapture2 image as a floating point EXR image. The pixel format that I get from the camera is YUV420 and I need to convert it to RGB in order to save it. What is the best way to do this? Precision is very important for this.
user3178756
  • 555
  • 1
  • 5
  • 17
2
votes
1 answer

How to Load a Many-Channel EXR in Android

I'm using OpenCV for Android like this to to load an EXR image: String testImgPath = "/storage/sdcard0/test2.exr"; //I know better than to hardcode paths. This is just a test. Mat mRgba = Highgui.imread(testImgPath,…
JASON G PETERSON
  • 2,193
  • 1
  • 18
  • 19
2
votes
3 answers

Converting RGB values in [0,1] range to high dynamic range (EXR format)

I just need some clarification on how to properly convert rgb pixel values in the range [0,1] to be in the right range for a HDR format like openEXR. So I know for instance that when working with low dynamic range formats like PNG or JPG that only…
user1855952
  • 1,515
  • 5
  • 26
  • 55
2
votes
2 answers

visual studio 2012 can't resolve static fields in a dll lib

I'm compiling openexr2.0.0 using visual studio 2012 x64 dll, I got this error: ImfLut.obj : error LNK2001: unresolved external symbol "private: static union half::uif const * const half::_toFloat" (?_toFloat@half@@0QBTuif@1@B) ImfRgbaYca.obj :…
Shen Yang
  • 477
  • 5
  • 10
1
vote
1 answer

Is it possible to have an animated background texture in SceneKit?

I mean animating the scene background (scene.background.contents). Not a texture placed on an object. I currently have a .exr file as the background in my project, but I would like to have an animated background running in a loop. My first idea was…
sar
  • 21
  • 3
1
vote
0 answers

in blender, using python, how to read multilayer exr, edit several layers, then resave to multilayer exr?

blender doesn't allow access to the pixels of image blocks that have a multilayer exr loaded. How can I read a multilayer exr, edit several layers, then resave to multilayer exr. I'm unable to build any modules on user machines such as OpenEXR, the…
user3597862
  • 121
  • 4
1
vote
1 answer

How to extract and save as separate files the RGBA and Z channels from an EXR file in Python?

Tell me, how I can extract individual channels from an exr image? This feature is in Photoshop and After Effects, but I would like to do it with code. I found the required code here (https://gist.github.com/jadarve/de3815874d062f72eaf230a7df41771b),…
Vitaliy V.
  • 17
  • 4
1
vote
1 answer

How can I solve openexr install error in Ubuntu?

I'm try to install openexr in ubuntu with pip install openexr. But it's not work. Also I tried to install with .whl file, but error is returned. ERROR: OpenEXR-1.3.7-cp39-cp39-win_amd64.whl is not a supported wheel on this platform. How can I solve…
1
vote
1 answer

Python: obtain radiometric values from OpenEXR channels

Good morning everybody! I created a physically accurate scene in Blender and my aim, using python, is to study radiometric conditions over the rendered scene in order to obtain an illumination map in terms of [W/m^2]. I saved images in OpenEXR file…
1
vote
0 answers

How to export a channel from multi-channel EXR image using OpenEXR

I have EXR image containing the multiple image channels like cryptomatte, reflect, refract, specular and etc. I would like to go ahead and export these embedded channels as separate PNG or JPG images. Both OpenEXR and OpenEXR Python module are…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
1
vote
0 answers

Export OpenEXR file from Google Colab

Right now, I have some code that is storing an OpenEXR file: FrameBuffer frameBuffer; frameBuffer.insert ("G", Slice(FLOAT, (char *)data, sizeof(*data), sizeof(*data)*width)); frameBuffer.insert ("Z",…
Linh Phan
  • 83
  • 1
  • 9
1
vote
2 answers

Error in installing OpenEXR on Windows Platform

I am facing a problem while installing OpenEXR on windows platform. I use pip install OpenEXR ERROR: Command errored out with exit status 1: command: 'd:\dl-3d\gridding_residual_network\scripts\python.exe' -u -c 'import sys, setuptools,…
1
vote
1 answer

Write PIL image to EXR using OpenEXR in Python

I'm attempting to write a floating point PIL image object out to a channel in an EXR file using OpenEXR. I can read EXR data into a PIL image fine: import OpenEXR import Imath from PIL import Image import numpy as np exrPath =…
Geordie
  • 1,920
  • 2
  • 24
  • 34
1
vote
1 answer

OpenEXR RgbaOutputFile is flipped in Nuke

I have been trying to create EXR images from the OpenEXR library but the image is coming into Nuke upside down. The only thing that seems to render the image the way that I expect is DJV. I am getting a visual file which looks correct ,with the cube…
cvolpe
  • 41
  • 6
1
vote
1 answer

SceneKit Swift - using HDR environment light map from file

I'm trying to use a spherical HDR image as the environment light in a Swift project using SceneKit and am having trouble using standard 32bpc HDR imaging formats to do it. I can use PNG maps easily, but have trouble loading images from an OpenEXR…