resize(inputImage, resize, interpolation)

Function Usage

Resizes an image. For details about the inputs, outputs, and alignment modes, see resize(inputImage, resize, interpolation).

Input Parameter Description

Parameter

Type

Description

inputImage

Image class

Image class before resizing.

resize

Size class

Height and width for resizing

interpolation

Interpolation enumerations

Resizing mode. The default value is HUAWEI_HIGH_ORDER_FILTER.

Return Parameter Description

Image object

Exception Throwing Interface

If the ImageProcessor fails to be created or an image fails to be resized, a runtime exception occurs.