lagrange.image¶
Module Contents¶
Classes¶
Image channel |
|
Image pixel precision |
|
Image storage class |
- class lagrange.image.ImageChannel(*args, **kwds)¶
Bases:
enum.EnumImage channel
- four = 4¶
- one = 1¶
- three = 3¶
- unknown = 5¶
- class lagrange.image.ImagePrecision(*args, **kwds)¶
Bases:
enum.EnumImage pixel precision
- float16 = 6¶
- float32 = 4¶
- float64 = 5¶
- int32 = 3¶
- int8 = 1¶
- uint32 = 2¶
- uint8 = 0¶
- unknown = 7¶
- class lagrange.image.ImageStorage(width, height, alignment)¶
Image storage class
- Parameters:
width (int)
height (int)
alignment (int)
- property data: Annotated[numpy.typing.NDArray[numpy.uint8], dict(order='C', device='cpu')]¶
Raw image data
- Return type:
Annotated[numpy.typing.NDArray[numpy.uint8], dict(order=’C’, device=’cpu’)]
- property height: int¶
Image height
- Return type:
int
- property stride: int¶
Image stride
- Return type:
int
- property width: int¶
Image width
- Return type:
int