BlurConfig

Description

Configures the corrosion operation.

Structure Definition

1
2
3
4
5
6
7
8
struct BlurConfig {
    Size kernelSize = Size(3, 3);
    MorphShape morphShape = MorphShape::MORPH_RECT;
    std::pair<int, int> anchor = std::make_pair(-1, -1);
    uint32_t iterations = 1;
    BorderType borderType = BorderType::BORDER_REPLICATE;
    std::vector<double> borderValue;
};

Parameters

Parameter

Description

kernelSize

Size of the convolution kernel. The value range of the width and height is [3, 9], and the width and height of the kernel must be the same. The default value is 3 x 3.

morphShape

Convolution shape. Currently, only MORPH_RECT is supported. For details, see MorphShape.

anchor

Anchor of the convolution kernel. The default value is (-1, -1), indicating that the anchor is located in the center of the kernel. This parameter cannot be configured currently.

iterations

Number of iterations of the corrosion operation iteration. The default value is 1, and the value range is [1, 100].

borderType

Boundary padding type. Currently, only BORDER_REPLICATE is supported. For details, see BorderType.

borderValue

Boundary padding value, which stores the value of the color component. The value range is [0, 255].

This parameter is pre-configured and cannot be configured currently.