| Total Complexity | 0 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import attr |
||
| 2 | from numpy.typing import NDArray |
||
| 3 | |||
| 4 | |||
| 5 | @attr.s |
||
| 6 | class Image: |
||
| 7 | """An image loaded into memory, represented as a multidimension mathematical matrix/array. |
||
| 8 | |||
| 9 | The 'file_path' attribute indicates a file in the disk that corresponds to the matrix |
||
| 10 | |||
| 11 | Args: |
||
| 12 | file_path (str): |
||
| 13 | matrix (NDArray): |
||
| 14 | """ |
||
| 15 | file_path: str = attr.ib() |
||
| 16 | matrix: NDArray = attr.ib(default=None) |
||
| 17 |