Interpolation
Description
Defines the resizing mode, which is used with APIs of the Resize class.
Structure Definition
1 2 3 4 5 6 7 | enum class Interpolation { HUAWEI_HIGH_ORDER_FILTER = 0, BILINEAR_SIMILAR_OPENCV = 1, NEAREST_NEIGHBOR_OPENCV = 2, BILINEAR_SIMILAR_TENSORFLOW = 3, NEAREST_NEIGHBOR_TENSORFLOW = 4, }; |
Parameters
Parameter |
Description |
|---|---|
HUAWEI_HIGH_ORDER_FILTER |
High-order filtering algorithm developed by Huawei. (For the Atlas inference product, 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 Atlas inference product. |
NEAREST_NEIGHBOR_TENSORFLOW |
Conventional nearest neighbor algorithm, whose compute process is close to that of TensorFlow. It is not supported by Atlas inference product. |