昇腾社区首页
中文
注册

resize(inputImage, resize, interpolation)

函数功能

ImageProcessor类的图像缩放接口,输入输出格式、分辨率范围、对齐方式请参见Resize

输入参数说明

参数名

类型

说明

inputImage

Image类

输入缩放前的Image类。

resize

Size类

输入图像缩放的宽高。

interpolation

Interpolation参数枚举类

输入图像的缩放方式,默认为“HUAWEI_HIGH_ORDER_FILTER”

返回参数说明

返回缩放后的Image类。

抛异常接口

缩放失败,抛出runtime异常。