ResizeConfig

Description

Defines the resizing configuration.

Structure Definition

1
2
3
4
5
6
7
struct ResizeConfig { 
     uint32_t height = 0; 
     uint32_t width = 0; 
     float scale_x = 0.f; 
     float scale_y = 0.f; 
     uint32_t interpolation = 0;
 }

Parameters

Parameter

Input/Output

Description

height

Input

Height of the resized image

width

Input

Width of the resized image

scale_x

Input

Horizontal resizing ratio

scale_y

Input

Vertical resizing ratio

interpolation

Input

Resizing operator. The values are as follows:
  • 0 (default): Huawei-developed nearest neighbor interpolation algorithm.
  • 1: conventional bilinear algorithm (not supported currently).
  • 2: conventional nearest neighbor algorithm (not supported currently).