colour.io.AbstractLUTSequenceOperator#

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

Bases: ABC

Define the base class for LUT sequence operators.

Provide an abstract base class that establishes the interface for all LUT sequence operator implementations. This ABCMeta abstract class must be inherited by concrete sub-classes that implement specific operator functionality within LUT processing pipelines.

Parameters:
  • name (str | None) – LUT sequence operator name.

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

Attributes

Methods

__init__(name: str | None = None, comments: Sequence[str] | None = None) None[source]#
Parameters:
Return type:

None

property name: str#

Getter and setter 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 for the LUT comments.

Parameters:

value – Value to set the LUT comments with.

Returns:

LUT comments.

Return type:

list

abstractmethod apply(RGB: ArrayLike, *args: Any, **kwargs: Any) NDArrayFloat[source]#

Apply the LUT sequence operator to the specified 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