class Matrix(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Apply a user supplied colour matrix.

Converts n-component input to m-component output with a user-supplied m x n matrix.

The matrix input is used to update the matrix. No processing happens until a matrix is received, and a new matrix can be applied while the component is running.

The matrix is supplied as a Frame object, allowing an audit trail to be included describing it. The frame’s data must be an m x n numpy.ndarray object. The frame’s frame number must be less than zero.

inputs = ['input', 'matrix']

Comments or questions? Please email