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:
- RESIZER_STRETCHING: stretch mode.
- RESIZER_TF_KEEP_ASPECT_RATIO: Fast R-CNN resizing mode.
- RESIZER_MS_KEEP_ASPECT_RATIO: resizing with the aspect ratio preserved.
- RESIZER_ONLY_PADDING: padding based on the original length and width.
- RESIZER_KEEP_ASPECT_RATIO_LONG: resizing based on the length ratio.
- RESIZER_KEEP_ASPECT_RATIO_SHORT: resizing based on the width ratio.
- RESIZER_RESCALE: resizing based on the smaller value of the length and width resizing ratios.
- RESIZER_RESCALE_DOUBLE: resizing based on the smaller value of the length and width resizing ratio twice.
- RESIZER_MS_YOLOV4: YOLOv4 resizing mode.
|