hi_fisheye_attr
Description
Defines the configuration related to the fisheye attribute (XY mode).
Prototype
typedef struct {
hi_bool lmf_en;
hi_bool bg_color_en;
hi_u32 bg_color;
hi_s32 hor_offset;
hi_s32 ver_offset;
hi_u32 trapezoid_coef;
hi_s32 fan_strength;
hi_fisheye_mount_mode mount_mode;
hi_u32 rgn_num;
hi_fisheye_rgn_attr fisheye_rgn_attr[HI_FISHEYE_MAX_RGN_NUM];
} hi_fisheye_attr;
Members
Member |
Description |
|---|---|
lmf_en |
Whether to use the user-defined LMF parameter of the fisheye lens The options are as follows:
|
bg_color_en |
Whether to attach the background color to the output image. This member can only be set to HI_FALSE. The options are as follows:
|
bg_color |
Background color, in RGB888 format. Value range: [0, 0xFFFFFF]. |
hor_offset |
Horizontal offset of the lens center point relative to the sensor center point. Value range: [–511, 511], in pixels. The lens center point must be a valid pixel in the image. |
ver_offset |
Vertical offset of the lens center point relative to the sensor center point. Value range: [–511, 511], in pixels. The lens center point must be a valid pixel in the image. |
trapezoid_coef |
Trapezoid correction coefficient. This member is used to correct the pitch angle in wall mount mode. Value range: [0, 32]. |
fan_strength |
Fan correction strength coefficient, valid only in the 180° mode. Value range: [–760, 760]. |
mount_mode |
Mount mode of the fisheye lens |
rgn_num |
Number of correction regions of an image. A maximum of four regions are supported. |
fisheye_rgn_attr |
Attribute configuration for each correction region. |