hi_stitching_mean_param
Description
Converts the hi_stitching_gain_param.calulate_gain_callback.hist_config field into the hi_stitching_mean_param structure in the callback function used for gain compensation. For details, see Conversion Sample Code.
Prototype
typedef struct {
hi_u32 pic_index;
hi_u32 overlap_pic_index;
hi_u32 mean_y_or_r;
hi_u32 mean_u_or_g;
hi_u32 mean_v_or_b;
hi_u32 reserved[4];
} hi_stitching_mean_param;
Members
Member |
Description |
|---|---|
pic_index |
Input image ID. |
overlap_pic_index |
When hi_stitching_histogram_type is set to OVERLAP_MEAN_VALUE, the overlap_pic_index parameter indicates the ID of the image that overlaps the input image. |
mean_y_or_r |
Average value of the Y or R component. |
mean_u_or_g |
Average value of the U or G component. |
mean_v_or_b |
Average value of the V or B component. |
reserved |
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. |