colour_hdri.Image#
- class colour_hdri.Image(path: Optional[str] = None, data: Optional[ArrayLike] = None, metadata: Optional[Metadata] = None)[source]#
Bases:
object
Define the base object for storing an image along its path, pixel data and metadata needed for HDRI / radiance images generation.
- Parameters:
Attributes
Methods
colour_hdri.Image.__init__()
- property data: Optional[ndarray]#
Getter and setter property for the image data.
- Parameters:
value – Value to set the image data with.
- Returns:
Image data.
- Return type:
- property metadata: Optional[Metadata]#
Getter and setter property for the image metadata.
- Parameters:
value – Value to set the image metadata with.
- Returns:
Image metadata.
- Return type:
- read_data(cctf_decoding: Optional[Callable] = None) ndarray [source]#
Read image pixel data at
Image.path
attribute.- Parameters:
cctf_decoding (Optional[Callable]) – Decoding colour component transfer function (Decoding CCTF) or electro-optical transfer function (EOTF / EOCF).
- Returns:
Image pixel data.
- Return type:
- Raises:
ValueError – If the image path is undefined.
- read_metadata() Metadata [source]#
Read image relevant exif metadata at
Image.path
attribute.- Returns:
Image relevant exif metadata.
- Return type:
- Raises:
ValueError – If the image path is undefined.