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
3
votes
1 answer

Converting EXR image sequence to .MOV

I'm looking for a encoder that creates a Quicktime Movie (PhotoJpeg) from OpenEXR image sequences. Any help would be really appreciated
krepitor
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

16-bit float data type

Does anyone have any experience with using the 16-bit floating-point type in an application. This relatively new data type is used in computer graphics. It's defined by several specs: OpenEXR, DirectX and the new IEEE-754 2008 standard. At…
Die in Sente
  • 9,546
  • 3
  • 35
  • 41
3
votes
2 answers

Where I can find libopenexr.so in Ubuntu?

I want to build some code example which depends on libopenexr library. I found these two packages: wiesniak@wiesniak-Precision-M4800:~/OpenGLSB5E_build$ apt-cache search openexr ... libopenexr-dev - development files for the OpenEXR image…
wiesniak
  • 558
  • 2
  • 11
3
votes
3 answers

Using EXR images in OpenCV

I'm currently working on a project with OpenEXR and I would like to implement some Blob detection algorithms. To do this I figured that I could use OpenCV as it says in the documentation that it can open OpenEXR format files. I have all the…
Nestor
  • 31
  • 1
  • 2
3
votes
0 answers

Efficient way of OpenEXR to 8bit format with gamma encoding by OpenEXR and numpy?

I'm looking for more efficient solution of converting .exr to 8bit JPEG with gamma encoding. Currently, I make use of OpenEXR module and numpy. Here is the code snippets: File = OpenEXR.InputFile(exrfile) PixType =…
Drake Guan
  • 14,514
  • 15
  • 67
  • 94
2
votes
0 answers

Add alpha channel to an .exr file in python

I'm trying to add an alpha channel to an .exr file(RGB) using OpenEXR python library or OpenCV, couldn't figure out how. Here's where I am. import OpenEXR,Imath,array,os import numpy as np def write_exr_alpha(dir,output_dir): z_file =…
JGrey
  • 31
  • 3
2
votes
0 answers

How can I export .hdr or .exr image from iPhone HDRI photo (.HEIC format)?

I want to take HDR photos with my iPhone and get images as .hdr or .exr image formats, in order to use them for my cinema rendering purpose. I took some HDR photos with my iPhone X and sent them to my iMac, and then I tried converting them from…
2
votes
1 answer

MacOS pip install pyexr raised OpenEXR.cpp:37:10: fatal error: 'ImfIO.h' file not found

pip install pyexr Then, it raised: Collecting pyexr Using cached PyEXR-0.3.9-py2.py3-none-any.whl Requirement already satisfied: future in /Users/li/opt/anaconda3/lib/python3.7/site-packages (from pyexr) (0.18.2) Collecting OpenEXR Using cached…
DennisLi
  • 3,915
  • 6
  • 30
  • 66
2
votes
1 answer

Splitting OpenEXR into different exposure images

I'm trying to use this dataset to do Exposure Meging (Fusion) in Python. Each image in the dataset has an OpenEXR file that can be downloaded (i don't have much experience with this file format). I want to extract different samples (jpg or png)…
Mohamed Benkedadra
  • 1,964
  • 3
  • 21
  • 48
2
votes
1 answer

How to convert float16 to uint8 in Python for EXR files

I'm using OpenEXR to read EXR files in Python. I have R, G and B channels with Half data (float16). Using Numpy, I tried, unsuccessfully to convert the data from float16 to uint8 (0-255 colors). rCh = getChanEXR(imageFile, 'R','HALF') …
Mad Guru
  • 41
  • 1
  • 7
2
votes
0 answers

Unable to import OpenEXR

I am unable to import OpenEXR module in jupyter notebook. On importing it throws the following error. I am using MacOS High Sierra. And working inside a conda environment. ImportError:…
Siddharth Das
  • 1,057
  • 1
  • 15
  • 33
2
votes
0 answers

Can't import OpenEXR under python2.7

Import Error /usr/local/lib/python2.7/dist-packages/OpenEXR.so: undefined symbol. I meet this error after install OpenEXR-1.3.0 OR 1.2.0. I used pip install OpenEXR for installation. Can anyone help me?
YFG
  • 21
  • 2
2
votes
3 answers

How do I convert EXR to PNG and adjust brightness at the same time

I was able to convert my EXR image to a PNG using the techniques outlined in Image conversion from IFF and EXR formats to JPEG format . convert 0007.exr /tmp/0007.png Unfortunately the PNG looks quite dim. What should I add to the imagemagick…
Mutant Bob
  • 3,121
  • 2
  • 27
  • 52
2
votes
0 answers

map/set iterators incompatible error using OpenEXR and compiled in MSVC Debug mode

I have a problem that I can't figure out. My project using the OpenEXR library is perfectly working on the Linux platform. It has to be compilable also in Visual Studio 2015. Hence I'm trying to port it. I have successfully compiled and installed…
Michal Wirth
  • 169
  • 2
  • 8
2
votes
2 answers

Sometimes I get EXEC_BAD_ACCESS (Access violation) when reversing an array

I am loading an image using the OpenEXR library. This works fine, except the image is loaded rotated 180 degrees. I use the loop shown below to reverse the array but sometimes the program will quit and xcode will give me an EXEC_BAD_ACCESS error…
usm
  • 245
  • 2
  • 17