hi_gaussian_blur_config

Function

Defines the Gaussian filtering parameters.

Definition

typedef struct {
    hi_size kernel_size;
    hi_double sigma_x;
    hi_double sigma_y;
    hi_vpc_bord_type border_type;
    hi_vpc_scalar scalar_value;
    hi_u32 reserved[2];
} hi_gaussian_blur_config;

For details about basic data types hi_u32 and hi_double, 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.

sigma_x

X-sigma value of Gaussian filtering.

sigma_y

Y-sigma value of Gaussian filtering. If sigma_y is 0, sigma_y is equal to sigma_x.

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.

reserved[2]

Reserved. To ensure compatibility in later versions, use the memset structure for resetting and initialization. Do not explicitly access the reserved field in the code.