---
title: resize(inputImage, resize, interpolation)
description: "图像缩放。输入输出范围及对齐方式请参见resize(inputImage, resize, interpolation)。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_1162.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_1162.html
indexId: 297d45385a302f1d639a4e89c8c13cbfa0d64a3c65881b66a3b67def646c844e102
---
# resize(inputImage, resize, interpolation)

#### 函数功能

图像缩放。输入输出范围及对齐方式请参见resize(inputImage, resize, interpolation)。


#### 输入参数说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| inputImage | Image类 | 输入缩放前的Image类。 |
| resize | Size类 | 输入图像缩放的宽高。 |
| interpolation | Interpolation参数枚举类 | 输入图像的缩放方式，默认为“HUAWEI\_HIGH\_ORDER\_FILTER” 。 |


#### 返回参数说明

Image对象。


#### 抛异常接口

创建ImageProcessor失败、图片缩放失败，抛出runtime异常。
