hi_fisheye_rgn_attr
Description
Defines the configuration of attributes for each fisheye correction region.
Prototype
typedef struct {
hi_fisheye_view_mode view_mode;
hi_u32 in_radius;
hi_u32 out_radius;
hi_u32 pan;
hi_u32 tilt;
hi_u32 hor_zoom;
hi_u32 ver_zoom;
hi_rect out_rect;
} hi_fisheye_rgn_attr;
Members
Member |
Description |
|---|---|
view_mode |
Correction mode of the region. This member cannot be set to HI_FISHEYE_VIEW_MODE_NO_TRANS. |
in_radius |
360° panoramic mode: inner radius of the original image corresponding to the correction region. Other modes: invalid Value range: [0, out_radius). |
out_radius |
Outside radius of the source image corresponding to the correction region in 360° panoramic correction mode, and visible radius of the correction region in other modes. Value range: [1, 3 x max(width of input image/4, height of input image/4)]. |
pan |
Pan value of the correction region. Value range: [0, 360]. |
tilt |
Tilt value of the correction region. Value range: [0, 360]. |
hor_zoom |
Horizontal zoom value of the correction region. Value range: [1, 4095]. |
ver_zoom |
Vertical zoom value of the correction region. Value range: [1, 4095]. |
out_rect |
Output position, width, and height of the correction region. Value range: The position, width, and height cannot exceed the range of the output image for fisheye correction. The start X coordinate must be 16-pixel aligned, and the start Y coordinate must be 2-pixel aligned. |