hi_ldc_v2_attr

Description

Defines the LDC attributes of the HI_LDC_V2 version.

Definition

typedef struct {
    hi_s32 focal_len_x;
    hi_s32 focal_len_y;
    hi_s32 coor_shift_x;
    hi_s32 coor_shift_y;
    hi_s32 src_cali_ratio[HI_SRC_LENS_COEF_SEG][HI_SRC_LENS_COEF_NUM];
    hi_s32 src_jun_pt;
    hi_s32 dst_cali_ratio[HI_DST_LENS_COEF_SEG][HI_DST_LENS_COEF_NUM];
    hi_s32 dst_jun_pt[HI_DST_LENS_COEF_SEG_POINT];
    hi_s32 max_du;
} hi_ldc_v2_attr;

Members

Member

Description

focal_len_x

Valid focal length of the lens in the horizontal direction.

Value range: [6400, 117341700]

focal_len_y

Valid focal length of the lens in the vertical direction.

Value range: [6400, 117341700]

coor_shift_x

X coordinate of the optical center.

Value range: [35 x width, 65 x width]. width indicates the image width.

coor_shift_y

Y coordinate of the optical center.

Value range: [35 x height, 65 x height]. height indicates the image height.

src_cali_ratio

Lens distortion coefficient. A maximum of two segments are allowed. The value of [0][0] is fixed at 1 x 105, and the value range of other members is [–16 x 105, 16 x 105].

src_jun_pt

Lens distortion coefficient.

Value range: [0, 32 x 105]

dst_cali_ratio

Lens distortion coefficient. A maximum of three segments are allowed. The value range of each member is [–16 x 105, 16 x 105].

dst_jun_pt

Lens distortion coefficient.

Value range: [0, 16 x 105]

max_du

Lens distortion coefficient.

Value range: [0, 1<<20]