---
title: Interpolation
description: "缩放方式，用于ImageProcessor类的缩放接口。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0163.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0163.html
indexId: b5895f9eb57e6b49a5cf4d8de04bf49a613e1255b8f08331962e3d7fff48fb90102
---
# Interpolation

#### 功能

缩放方式，用于ImageProcessor类的缩放接口。


#### 结构定义

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


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| HUAWEI\_HIGH\_ORDER\_FILTER | 华为自研的高阶滤波算法。 |
| BILINEAR\_SIMILAR\_OPENCV | 业界通用的 Bilinear 算法（与 OpenCV 算法的计算过程类似）。 |
| NEAREST\_NEIGHBOR\_OPENCV | 业界通用的 Nearest neighbor 算法（与 OpenCV 算法的计算过程类似）。 |
| BILINEAR\_SIMILAR\_TENSORFLOW | 业界通用的 Bilinear 算法（与 TensorFlow 算法的计算过程类似）。 |
| NEAREST\_NEIGHBOR\_TENSORFLOW | 业界通用的 Nearest neighbor 算法（与 TensorFlow 算法的计算过程类似，）。 |
