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