Skip to content

image

Image

An image loaded into memory, represented as a multidimension mathematical matrix/array.

The 'file_path' attribute indicates a file in the disk that corresponds to the matrix

Parameters:

Name Type Description Default
file_path str

the file in disk that the image was loaded from

required
matrix NDArray

the loaded image as mathmatical array/matrix

required
Source code in src/artificial_artwork/image/image.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
@attr.s
class Image:
    """An image loaded into memory, represented as a multidimension mathematical matrix/array.

    The 'file_path' attribute indicates a file in the disk that corresponds to the matrix

    Args:
        file_path (str): the file in disk that the image was loaded from
        matrix (NDArray): the loaded image as mathmatical array/matrix
    """

    file_path: str = attr.ib()
    matrix: NDArray = attr.ib(default=None)