colour.io.AbstractLUTSequenceOperator

class colour.io.AbstractLUTSequenceOperator(name: Optional[str] = None, comments: Optional[Sequence[str]] = None)[source]

Bases: abc.ABC

Define the base class for LUT sequence operators.

This is an ABCMeta abstract class that must be inherited by sub-classes.

Parameters
  • name (Optional[str]) – LUT sequence operator name.

  • comments (Optional[Sequence[str]]) – Comments to add to the LUT sequence operator.

Attributes

Methods

__init__(name: Optional[str] = None, comments: Optional[Sequence[str]] = None)[source]
Parameters
property name: str

Getter and setter property for the LUT name.

Parameters

value – Value to set the LUT name with.

Returns

LUT name.

Return type

str

property comments: List[str]

Getter and setter property for the LUT comments.

Parameters

value – Value to set the LUT comments with.

Returns

LUT comments.

Return type

list

abstract apply(RGB: ArrayLike, *args: Any, **kwargs: Any) numpy.ndarray[source]

Apply the LUT sequence operator to given RGB colourspace array.

Parameters
  • RGB (ArrayLike) – RGB colourspace array to apply the LUT sequence operator onto.

  • args (Any) – Arguments.

  • kwargs (Any) – Keywords arguments.

Returns

Processed RGB colourspace array.

Return type

numpy.ndarray

__weakref__

list of weak references to the object (if defined)