OpenEXRInput

Input object for reading images from an OpenEXR file.  The OpenEXR file format allows you to store high dynamic range images efficiently.  It is recommended to use the load_* methods of MultiArray instead.

OpenEXR images allow storage of custom channels (red, green, blue, luminance, chroma-red, chroma-blue, z-buffer, alpha, ...  ). HornetsEye does not provide access to z-buffer-, alpha-, and custom-channels.  HornetsEye understands the following three cases:

  • The image has a “Y” channel (luminance) but no “RY” and “BY” channel.  In this case the image simply is a greyscale image.
  • The image has a “Y”, “RY”, and a “BY” channel.  In this case the image is converted to RGB using the OpenEXR library.
  • The image has a “R”, “G”, and a “B” channel.  In this case the image is a colour image.

Note that OpenEXR-support is optional and only available if installed properly (Frequently Asked Questions).

Inherits

See also

Summary
OpenEXRInputInput object for reading images from an OpenEXR file.
Functions
OpenEXRInput.newConstructor.
inspectReturn string with information about this object.
readRead an image and return it.
status?Indicates whether more images are available.
closeForce close.

Functions

OpenEXRInput.new

def OpenEXRInput.new(file)

Constructor.

Parameters

fileA filename or an open file.

inspect

def inspect

Return string with information about this object.

Returns

Returns a string which will look like this: “OpenEXRInput-object”.

read

def read

Read an image and return it.

Returns

An object of type <Image>.

status?

def status?

Indicates whether more images are available.

close

def close

Force close.

def OpenEXRInput.new(file)
Constructor.
def inspect
Return string with information about this object.
def read
Read an image and return it.
def status?
Indicates whether more images are available.
def close
Force close.
def MultiArray(element_type,
*shape)
Create a multi-dimensional array class.
Base class for different types of input sources for images.
Output object for writing an image to an OpenEXR file.
Close