---
title: ResizeConfig
description: "缩放的配置定义。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0168.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0168.html
indexId: 8b217599d43a3728c350a847b2385f240a0351f21ed7bd8c984686baa28a285d102
---
# ResizeConfig

#### 功能

缩放的配置定义。


#### 结构定义

```
struct ResizeConfig {
uint32_t height = 0;
uint32_t width = 0;
float scale_x = 0.f;
float scale_y = 0.f;
uint32_t interpolation = 0;
}
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| height | 输入 | 缩放后的高度。 |
| width | 输入 | 缩放后的宽度。 |
| scale\_x | 输入 | 横向缩放比例。 |
| scale\_y | 输入 | 纵向缩放比例。 |
| interpolation | 输入 | 指定缩放算子，取值范围： ●“0”：默认值，华为自研的最近邻插值算法。 ●“1”：业界通用的Bilinear算法，当前不支持。 ●“2”：业界通用的Nearest neighbor算法，当前不支持。 |
