colour_hdri.ImageStack

class colour_hdri.ImageStack[source]

Bases: collections.abc.MutableSequence

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

ImageStack()
__init__()[source]
__getitem__()[source]
__setitem__()[source]
__delitem__()[source]
__len__()[source]
__getattr__()[source]
__setattr__()[source]
sort()[source]
insert()[source]
from_files()[source]
static from_files(image_files, cctf_decoding=None)[source]

Returns a colour_hdri.ImageStack instance with given image files.

Parameters
  • image_files (array_like) – Image files.

  • cctf_decoding (object, optional) – Decoding colour component transfer function (Decoding CCTF) or electro-optical transfer function (EOTF / EOCF).

Returns

Return type

ImageStack

insert(index, value)[source]

Reimplements the MutableSequence.insert() method.

Parameters
  • index (int) – Item index.

  • value (object) – Item value.

sort(key=None)[source]

Sorts the underlying data structure.

Parameters

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