colour_hdri.ImageStack#

class colour_hdri.ImageStack[source]#

Bases: MutableSequence

Define a convenient stack storing a sequence of images for HDRI / radiance images generation.

Methods

insert(index: int, value: Any)[source]#

Insert given colour_hdri.Image class instance at given index.

Parameters:
sort(key: Callable | None = None)[source]#

Sort the underlying data structure.

Parameters:

key (Callable | None) – Function of one argument that is used to extract a comparison key from each data structure.

static from_files(image_files: Sequence[str], cctf_decoding: Callable | None = None) ImageStack[source]#

Return a colour_hdri.ImageStack instance from given image files.

Parameters:
  • image_files (Sequence[str]) – Image files.

  • cctf_decoding (Callable | None) – Decoding colour component transfer function (Decoding CCTF) or electro-optical transfer function (EOTF / EOCF).

Return type:

colour_hdri.ImageStack