Interpolation

Function

Resizing mode, which is used with the resizing APIs of the ImageProcessor class.

Structure Definition

enum class Interpolation {
    HUAWEI_HIGH_ORDER_FILTER = 0,
    BILINEAR_SIMILAR_OPENCV = 1,
    NEAREST_NEIGHBOR_OPENCV = 2,
    BILINEAR_SIMILAR_TENSORFLOW = 3,
    NEAREST_NEIGHBOR_TENSORFLOW = 4,
};

Parameter Description

Parameter

Description

HUAWEI_HIGH_ORDER_FILTER

High-order filtering algorithm developed by Huawei. For the Atlas inference products, it is the same as BILINEAR_SIMILAR_OPENCV.

BILINEAR_SIMILAR_OPENCV

Conventional bilinear algorithm, whose compute process is close to that of OpenCV.

NEAREST_NEIGHBOR_OPENCV

Conventional nearest neighbor algorithm, whose compute process is close to that of OpenCV.

BILINEAR_SIMILAR_TENSORFLOW

Conventional bilinear algorithm, whose compute process is close to that of TensorFlow. It is not supported by the Atlas inference products.

NEAREST_NEIGHBOR_TENSORFLOW

Conventional nearest neighbor algorithm, whose compute process is close to that of TensorFlow. It is not supported by the Atlas inference products.