补边值,用于图像处理“ImageProcessor”的补边功能,描述左、右、上、下四个方向补边的像素个数。
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; }; |
参数名 |
说明 |
---|---|
left,inputLeft |
左侧补边像素数量。 |
right,inputRight |
右侧补边像素数量。 |
top,inputTop |
上方补边像素数量。 |
bottom,inputBottom |
下方补边像素数量。 |
inputDim |
左、右、上、下补边像素数量。 仅在使用Dim(const uint32_t inputDim)构造函数时,将左、右、上、下补边像素数量设为与inputDim相同的值。 |