Dim

Description

Defines the padding values, which are used for padding of ImageProcessor and describe the numbers of pixels to be padded to the left, right, top, and bottom borders.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
struct Dim {
    Dim()
        : left(0), right(0), top(0), bottom(0) {}; 
    Dim(const uint32_t inputDim)
        : left(inputDim), right(inputDim), top(inputDim), bottom(inputDim) {}; 
    Dim(const uint32_t inputLeft, const uint32_t inputRight, const uint32_t inputTop, const uint32_t inputBottom)
        : left(inputLeft), right(inputRight), top(inputTop), bottom(inputBottom) {};
    uint32_t left;
    uint32_t right;
    uint32_t top;
    uint32_t bottom;
};

Parameters

Parameter

Description

left, inputLeft

Number of pixels for left padding

right, inputRight

Number of pixels for right padding

top, inputTop

Number of pixels for top padding

bottom, inputBottom

Number of pixels for bottom padding

inputDim

Numbers of pixels to be padded to the left, right, top, and bottom borders

Set the numbers of pixels to be padded to the left, right, top, and bottom borders to the same value as inputDim only when using the Dim(const uint32_t inputDim) constructor.