OpenColorIO

Open Source Color Management

OpenColorIO 1.0.6 documentation

Python: Processor

Usage

import PyOpenColorIO as OCIO

config = OCIO.Config()
processor = config.getProcessor()

Description

The Processor is the object used to actually perform image transformations.

Processor objects are not instantiated directly, but are created from the Config object, as shown above.

Functions

Processor.isNoOp()

Returns whether the actual transformation represented by Processor is a no-op.

Returns:whether transform is a no-op
Return type:bool
Processor.hasChannelCrosstalk()

Returns whether the transformation of Processor introduces crosstalk between the image channels.

Returns:whether there’s crosstalk between channels
Return type:bool

CPU Path Methods

Processor.applyRGB()

Apply the RGB part of the transform represented by Processor to an image.

Parameters:pyData (object) –
Returns:
Return type:list
Processor.applyRGBA()

Apply the RGB and alpha part of the transform represented by Processor to an image.

Parameters:pyData (object) –
Returns:
Return type:list
Processor.getCpuCacheID()

Returns the cache ID of the CPU that Processor will run on.

Returns:CPU cache ID
Return type:string

GPU Path Methods

Processor.getGpuShaderText()

Returns the GPU shader text.

Parameters:pyData (object) – two params
Returns:GPU shader text
Return type:string
Processor.getGpuShaderTextCacheID()

Returns the GPU shader text cache ID.

Parameters:pyData (object) – two params
Returns:GPU shader text cache ID
Return type:string
Processor.getGpuLut3D()

Returns the GPU LUT 3D.

Parameters:pyData (object) – two params?
Returns:GPU LUT 3D
Return type:list
Processor.getGpuLut3DCacheID()

Returns the GPU 3D LUT cache ID.

Parameters:pyData (object) – two params
Returns:GPU 3D LUT cache ID
Return type:string