CropResizePasteConfig

Function

Obtains coordinates of the cropped and texture images.

Structure Definition

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;
};

Parameter Description

Parameter

Description

cropLeft

Left coordinate of the cropped image

cropRight

Right coordinate of the cropped image

cropTop

Top coordinate of the cropped image

cropBottom

Bottom coordinate of the cropped image

pasteLeft

Left coordinate of the texture image

pasteRight

Right coordinate of the texture image

pasteTop

Top coordinate of the texture image

pasteBottom

Bottom coordinate of the texture image

interpolation

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).