ResizeType

Function

Indicates the image resizing mode (enumeration).

Structure Definition

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,
};

Parameter Description

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

Proportional resizing

RESIZER_ONLY_PADDING

Padding based on the original length and width.

RESIZER_KEEP_ASPECT_RATIO_LONG

Proportional resizing based on the maximum edge.

RESIZER_KEEP_ASPECT_RATIO_SHORT

Proportional resizing based on the minimum edge.

RESIZER_RESCALE

Proportional resizing based on the smaller value of the length and width ratio.

RESIZER_RESCALE_DOUBLE

Proportional resizing based on the smaller value of the length and width ratio twice.

RESIZER_MS_YOLOV4

Same as the YOLOv4 resizing mode.