hi_blur_config

Description

Defines the filtering parameters.

Prototype

typedef struct {
    hi_size kernel_size;
    hi_morph_shapes morph_shapes;
    hi_point anchor;
    hi_u32 iterations;
    hi_vpc_bord_type border_type;
    hi_vpc_scalar scalar_value;
} hi_blur_config;

Members

Member

Description

kernel_size

Size of the convolution kernel. The width and height of kernel_size can only be set to 1, 3, or 5.

morph_shapes

Filtering convolution shape.

anchor

Convolution kernel anchor, which needs to be set to (–1, –1). This field is reserved.

iterations

Number of convolution iterations. The value range is [1, 100]. For mean filtering processing, the value can only be set to 1. For corrosion or expansion processing, the value may be any one within the range of [1, 100].

border_type

Border making type. Only the HI_BORDER_CONSTANT and HI_BORDER_REPLICATE modes are supported.

scalar_value

Border making value.