1 | Image() |
1 | Image(b: ndarray, format: image_format, imageSizeInfo: Tuple = DEFAULT_IMAGE_SIZE_INFO) |
Parameter |
Type |
Description |
|---|---|---|
b |
ndarray |
Constructs the NumPy array of an image. The type of each element is np.uint8 and has three dimensions, indicating the height, width, and number of channels (HWC) of the image. |
format |
image_format |
Image color gamut format. The following color gamut types are supported:
The number of channels (C) in the b (input ndarray) shape must be the same as the color gamut type. The following describes the number of channels corresponding to each color gamut type.
|
imageSizeInfo |
Tuple(Size, Size) |
Combination of the valid width/height of the image and the aligned width/height. The valid width/height cannot exceed the aligned width/height. The height and width inputs are as follows: tuple (valid width/height, aligned width/height)
|
Image object