ResizeConfig
Function
This API defines the scaling configuration.
Structure Definition
struct ResizeConfig {
uint32_t height = 0;
uint32_t width = 0;
float scale_x = 0.f;
float scale_y = 0.f;
uint32_t interpolation = 0;
}
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
height |
Input |
Height of the resized image |
width |
Input |
Width of the resized image |
scale_x |
Input |
Horizontal scale ratio |
scale_y |
Input |
Vertical scale ratio |
interpolation |
Input |
Resizing operator select. ● 0 (default): Huawei-developed nearest neighbor interpolation algorithm. ● 1: the conventional bilinear algorithm (not supported currently). ● 2: the conventional nearest neighbor algorithm (not supported currently). |
Parent topic: Data Structure