缩放的配置定义。
1 2 3 4 5 6 7 | 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算法,当前不支持。 |