acldvppSetResizeConfigInterpolation

Description

Sets the image resizing algorithm.

Prototype

aclError acldvppSetResizeConfigInterpolation(acldvppResizeConfig *resizeConfig, uint32_t interpolation)

Parameters

Parameter

Input/Output

Description

resizeConfig

Output

Pointer to resizing configuration to be set.

Call acldvppCreateResizeConfig to create data of the acldvppResizeConfig type in advance.

interpolation

Input

Resizing algorithm. You are advised to use the same resizing algorithm as in model training.

For the Atlas 200/300/500 Inference Product, the following resizing algorithms are supported:
  • 0 (default): high-order filtering algorithm developed by Huawei.
  • 1: conventional bilinear algorithm, whose compute process is close to that of OpenCV.
  • 2: conventional nearest neighbor algorithm, whose compute process is close to that of OpenCV.
  • 3: conventional bilinear algorithm, whose compute process is close to that of TensorFlow.
  • 4: conventional nearest neighbor algorithm, whose compute process is close to that of TensorFlow.
For the Atlas Training Series Product, the following resizing algorithms are supported:
  • 0 (default): high-order filtering algorithm developed by Huawei.
  • 1: conventional bilinear algorithm, whose compute process is close to that of OpenCV.
  • 2: conventional nearest neighbor algorithm, whose compute process is close to that of OpenCV.
  • 3: conventional bilinear algorithm, whose compute process is close to that of TensorFlow.
  • 4: conventional nearest neighbor algorithm, whose compute process is close to that of TensorFlow.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.