hi_filter_2d_config

Description

Defines the 2D convolutional filtering parameters.

Prototype

typedef struct {
    hi_double filter[5][5];
    hi_size kernel_size;
    hi_point anchor; 
    hi_double delta; 
    hi_vpc_bord_type border_type;
    hi_vpc_scalar scalar_value;
    hi_u32 reserved[2];
} hi_filter_2d_config;

Members

Member

Description

filter

User-defined convolution kernel.

kernel_size

Convolution kernel size.

anchor

Anchor of the convolution kernel (reserved).

delta

Incremental value, which is added to each pixel value after convolution.

border_type

Padding type.

scalar_value

Padding value.

reserved[2]

Reserved.