CropResizePasteConfig

Description

Obtains coordinates of the cropped and pasted images.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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;
};

Parameters

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 for image pasting

pasteRight

Right coordinate for image pasting

pasteTop

Top coordinate for image pasting

pasteBottom

Bottom coordinate for image pasting

interpolation

Resizing operator. The values are as follows:

  • 0 (default): Huawei-developed nearest neighbor interpolation algorithm.
  • 1: conventional bilinear algorithm (not supported currently).
  • 2: conventional nearest neighbor algorithm (not supported currently).