AspectRatioPostImageInfo
Function
Inherits the PostImageInfo class and adds image resizing properties.
Structure Definition
struct AspectRatioPostImageInfo : PostImageInfo {
enum ResizeType {
RESIZER_STRETCHING = 0,
RESIZER_TF_KEEP_ASPECT_RATIO,
RESIZER_MS_KEEP_ASPECT_RATIO,
RESIZER_ONLY_PADDING,
RESIZER_KEEP_ASPECT_RATIO_LONG,
RESIZER_KEEP_ASPECT_RATIO_SHORT,
RESIZER_RESCALE,
RESIZER_RESCALE_DOUBLE,
RESIZER_MS_YOLOV4
};
float keepAspectRatioScaling = 0;
ResizeType resizeType;
};
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
keepAspectRatioScaling |
Input |
Image resizing ratio |
resizeType |
Input |
Image resizing mode
|
Parent topic: Data Structure