hi_stiching_ipm_table
Description
Defines the distortion correction table. It explains how the pixels of each output image are merged from two input images.
Prototype
typedef struct {
hi_u32 pic1_index;
hi_u32 pic2_index;
hi_float weight1;
hi_float weight2;
hi_float offset1_x;
hi_float offset1_y;
hi_float offset2_x;
hi_float offset2_y;
}hi_stiching_ipm_table;
Members
If pic1_index and pic2_index are set to the same input image ID, the same input image is referenced during image fusion.
To set the image fusion weights, the following condition must be met: weight2 + weight1 = 1.
If both weight1 and weight2 are set to 0, hardware does not perform image fusion regardless of the configurations of pic1_index and pic2_index.
Member |
Description |
|---|---|
pic1_index |
ID of input image 1. The value range is [0, 3]. |
pic2_index |
ID of input image 2. The value range is [0, 3]. |
weight1 |
Weight of image 1 during image fusion. The value range is [0, 1]. |
weight2 |
Weight of image 2 during image fusion. The value range is [0, 1]. |
offset1_x |
X-coordinate of the interpolation point of image 1. |
offset1_y |
Y-coordinate of the interpolation point of image 1. |
offset2_x |
X-coordinate of the interpolation point of image 2. |
offset2_y |
Y-coordinate of the interpolation point of image 2. |