hi_blur_config

Function

Defines the filtering parameters.

Definition

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;

For details about basic data type hi_u32, see Basic Data Types.

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. For details, see hi_size.

morph_shapes

Filtering convolution shape. For details, see hi_morph_shapes.

anchor

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

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. For details, see hi_vpc_bord_type.

scalar_value

Border making value. For details, see hi_vpc_scalar.