hi_ldc_v2_attr
Function
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;For details about basic data type hi_s32, see Basic Data Types.
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 × width, 65 × width]. width indicates the image width. |
coor_shift_y |
Y coordinate of the optical center. Value range: [35 × height, 65 × 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 × 105, and the value range of other members is [–16 × 105, 16 × 105]. |
src_jun_pt |
Lens distortion coefficient. Value range: [0, 32 × 105] |
dst_cali_ratio |
Lens distortion coefficient. A maximum of three segments are allowed. The value range of each member is [–16 × 105, 16 × 105]. |
dst_jun_pt |
Lens distortion coefficient. Value range: [0, 16 × 105] |
max_du |
LDC coefficient. Value range: [0, 1<<20] |