Class containing the parameters of a Tensor. More...
Functions | |
| Resolution | target_size (self) |
| Target size for the input image (Width, Height). More... | |
| TENSOR_PIXEL_TYPE | pixel_type (self) |
| Pixel data type for the Tensor elements. More... | |
| list[float] | mean (self) |
| Normalization parameter: Mean. More... | |
| list[float] | std (self) |
| Normalization parameter: Standard Deviation. More... | |
| bool | stretch (self) |
| If true, stretches the image to target_size. More... | |
| list[float] | scale (self) |
| Scale factor applied to the pixel values before normalization. | |
| TENSOR_COLOR_FORMAT | color_format (self) |
| Desired color format for the output Tensor. | |
| TENSOR_LAYOUT | layout (self) |
| Desired memory layout for the output Tensor. More... | |
| int | batch_size (self) |
| Number of images in the batch. | |
| MEM | memory_type (self) |
| Where the Tensor should be stored (CPU or GPU). | |
| int | get_pixel_size (self) |
| Returns the size in bytes of a single pixel element based on pixel_type. More... | |
| int | get_requested_channels (self) |
| Returns the number of channels associated with the color_format. More... | |
Class containing the parameters of a Tensor.
| Resolution target_size | ( | self | ) |
Target size for the input image (Width, Height).
Default: (640,640).
| TENSOR_PIXEL_TYPE pixel_type | ( | self | ) |
Pixel data type for the Tensor elements.
| list[float] mean | ( | self | ) |
Normalization parameter: Mean.
| list[float] std | ( | self | ) |
Normalization parameter: Standard Deviation.
| bool stretch | ( | self | ) |
If true, stretches the image to target_size.
If false, keeps aspect ratio and applies letterboxing (padding).
| TENSOR_LAYOUT layout | ( | self | ) |
Desired memory layout for the output Tensor.
| int get_pixel_size | ( | self | ) |
Returns the size in bytes of a single pixel element based on pixel_type.
| int get_requested_channels | ( | self | ) |
Returns the number of channels associated with the color_format.