昇腾社区首页
中文
注册

CropResizePasteConfig

功能

抠图坐标及贴图坐标。

结构定义

struct CropResizePasteConfig {
    // CROP CONFIG
    uint32_t cropLeft;
    uint32_t cropRight;
    uint32_t cropTop;
    uint32_t cropBottom;
    // PASTE CONFIG
    uint32_t pasteLeft;
    uint32_t pasteRight;
    uint32_t pasteTop;
    uint32_t pasteBottom;
    // RESIZE CONFIG
    uint32_t interpolation;
};

参数说明

参数名

说明

cropLeft

抠图坐标左边。

cropRight

抠图坐标右边。

cropTop

抠图坐标上边。

cropBottom

抠图坐标下边。

pasteLeft

贴图坐标左边。

pasteRight

贴图坐标右边。

pasteTop

贴图坐标上边。

pasteBottom

贴图坐标下边。

interpolation

指定缩放算子,取值范围:

  • “0”:默认值,华为自研的最近邻插值算法。
  • “1”:业界通用的Bilinear算法,当前不支持。
  • “2”:业界通用的Nearest neighbor算法,当前不支持。