Defines image related input / output utilities objects.
Bases: tuple
BitDepth_Specification(name, numpy, openimageio, domain, clip)
Return self as a plain tuple. Used by copy and pickle.
Exclude the OrderedDict from pickling
Return a nicely formatted representation string
Alias for field number 4
Alias for field number 3
Alias for field number 0
Alias for field number 1
Alias for field number 2
Reads given image using OpenImageIO.
Parameters: |
|
---|---|
Returns: | Image as a ndarray. |
Return type: | ndarray |
Examples
>>> import os
>>> path = os.path.join('tests', 'resources', 'CMSTestPattern.exr')
>>> image = read_image_as_array(path)
Writes given image using OpenImageIO.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> import os
>>> path = os.path.join('tests', 'resources', 'CMSTestPattern.exr')
>>> image = read_image_as_array(path)
>>> path = os.path.join('tests', 'resources', 'CMSTestPattern.png')
>>> write_image(image, path, 'uint8')
True