AspectRatioPostImageInfo
Description
Inherits the PostImageInfo class and adds image resizing properties.
Structure Definition
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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; }; |
Parameters
Parameter |
Description |
|---|---|
keepAspectRatioScaling |
Image resizing ratio |
resizeType |
Image resizing mode:
|
Parent topic: General Data Structures