ResizeType

Description

Indicates the image resizing mode (enumeration).

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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,
};

Parameters

Parameter

Description

RESIZER_STRETCHING

Stretching.

RESIZER_TF_KEEP_ASPECT_RATIO

Same as the Fast R-CNN resizing mode of the TensorFlow framework.

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

Same as the YOLOv4 resizing mode.