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
15
votes
5 answers

Install openexr in python doesn't work

I have successfully installed openexr using pip install openexr on my mac, but the same command fails on Ubuntu: OpenEXR.cpp:9:22: fatal error: ImathBox.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc'…
programmingIsFun
  • 1,057
  • 2
  • 11
  • 20
10
votes
3 answers

Reading .exr files in OpenCV

I have generated some depth maps using blender and have saved z-buffer values(32 bits) in OpenEXR format. Is there any way to access values from a .exr file (pixel by pixel depth info) using OpenCV 2.4.13 and python 2.7? There is no example anywhere…
gaya
  • 463
  • 2
  • 6
  • 22
9
votes
4 answers

Compiling OpenEXR for Windows7 64 using visual-studio 2010 fails

I am having trouble building OpenEXR for windows 7 using CMake. I am following directions described here The cmd output after I run the cmake command is as follows: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All…
has981
  • 425
  • 4
  • 18
7
votes
2 answers

Install OpenEXR for python failed

I'm trying to install OpenEXR. Using : MacOS 10.14.5 Python 3.6.5 Xcode Version 10.2.1 I tried pip install openexr but got the following error: Collecting openexr Using cached…
Blueko
  • 111
  • 3
  • 10
7
votes
1 answer

Install OpenEXR for python with pip on Windows

I am trying to install OpenEXR module for python using pip. C:\Python27_64\Scripts\pip.exe install openexr But I get the following error: Collecting openexr Using cached OpenEXR-1.2.0.tar.gz Installing collected packages: openexr Running…
tuket
  • 3,232
  • 1
  • 26
  • 41
7
votes
1 answer

CMake zlib Dependency Error on Windows

I'm trying to build OpenEXR 2.2 on Windows, but the instructions that came with the download aren't working as expected. The instructions for IlmBase worked, but once I get to the OpenEXR instructions, it fails because of zlib. The steps at this…
elveatles
  • 2,160
  • 3
  • 18
  • 16
5
votes
1 answer

Is OpenEXR supported on iOS / macOS?

I am trying to find out if reading OpenEXR files are supported or not on iOS and macOS. Here is what I found out: The docs barely mention OpenEXR, and where they do they say that it's only supported on recent macOS. Yet, the official WWDC 2017…
hyperknot
  • 13,454
  • 24
  • 98
  • 153
5
votes
1 answer

OpenEXR image loading

I've started to load EXR images using OpenEXR. I have to get the RGB pixels using floating point type. For RGB images, there was no problem on loading, using this code: ImfInputFile *iFile = ImfOpenInputFile(filename); FrameBuffer fb; …
Luca
  • 11,646
  • 11
  • 70
  • 125
4
votes
1 answer

OpenCV Gamma Correction exr

How can I gamma correct a 32bit .exr file to look like the desired result in the image of this question? Basically converting from liner to sRGB somehow? I got this code(and modified it a bit) from convert EXR to JPEG using ImageIO and Python I…
johancc
  • 87
  • 8
4
votes
2 answers

Read, process and show the pixels in .EXR format images

I want to read the exr file format images and see the pixel intensities in the corresponding location. And also wanted to stack them together to give them into a neural network. How can I do the normal image processing on these kind of formats?…
Rajesh
  • 221
  • 4
  • 16
4
votes
0 answers

Undefined symbol when importing OpenEXR in Python script

I want to load EXR images in a Python script. Thus I imported it with import OpenEXR but unfortunately I am getting the following error when I start my script with ipython testscript.py Error…
David Bulczak
  • 443
  • 1
  • 4
  • 13
4
votes
1 answer

Conversion form RGB to HDR image format (EXR format) in C++

I am converting a RGB image to EXR format, using openexr, as follows: int w = 1024; int h = 768; Array2D p (h, w); QString fileName = "Penguins.jpg"; QImage Image = QImage(fileName); QRgb c; for (int y = 0; y < h; ++y) { for (int x =…
csuo
  • 820
  • 3
  • 16
  • 31
3
votes
1 answer

Compile OpenEXR in cygwin

I'm trying to compile OpenEXR with cygwin but i'm having troubles doing it. What I've done so far: cd ilmbase-X.X.X ./configure make make install make check I need this because it's OpenEXR needs it. It runs ok, and it creates in /usr/local three…
André
  • 75
  • 1
  • 6
3
votes
1 answer

FFmpeg cant recognize 3 channels with each 32 bit

I am writing the linearized depth buffer of a game to openEXR using FFmpeg. Unfortunately, FFmpeg does not adhere to the openEXR file specification fully (like allowing unsigned integer for one channel) so I am writing one float channel to openEXR,…
Chryfi
  • 190
  • 13
3
votes
0 answers

Convert EXR to BufferedImage in Java

I need to read an EXR image file and to load it in a BufferedImage, but java doesn't support this file type by default. Doing some google search, as well does not help too much, because I have not found a working solution. Could someone help me…
MaxKing
  • 188
  • 1
  • 8
1
2 3 4 5 6 7