Skip to main content

hi_map_param

hi_point_pair_info

说明

定义输入、输出图片中的像素点坐标信息的结构体。

定义

typedef struct {
hi_float_point src_point[4];
hi_u32 src_point_count;
hi_float_point dest_point[4];
hi_u32 dest_point_count;
} hi_point_pair_info;

成员

成员名称描述
src_point输入图片像素点坐标。
src_point_count输入图片像素点坐标数量。
dest_point输出图片像素点坐标。
dest_point_count输出图片像素点坐标数量。

父主题: VPC图像处理

hi_float_point

说明

定义坐标信息的结构体。

定义

typedef struct {
hi_float x;
hi_float y;
} hi_float_point;

成员

成员名称描述
x像素点x坐标。
y像素点y坐标。

父主题: VPC图像处理

hi_map_param

说明

定义用户原始map表信息的结构体。

定义

typedef struct {
hi_void *map1;
hi_void *map2;
hi_u32 map_size;
hi_u32 src_pic_width;
hi_u32 src_pic_height;
hi_u32 dest_pic_width;
hi_u32 dest_pic_height;
hi_u64 reserved;
} hi_map_param;

成员

成员名称描述
map1Remap变换使用的map1表, 表示(x,y)坐标的x,类型为hi_float, 大小为: dest_pic_width * dest_pic_height *sizeof(hi_float)
map2Remap变换使用的map2表, 表示(x,y)坐标的y,类型为hi_float, 大小为: dest_pic_width * dest_pic_height *sizeof(hi_float)
map_sizemap1或map2的内存大小,map1表和map2表的内存大小一样,单位Byte。
src_pic_widthmap表对应的输入图片的宽度。
src_pic_heightmap表对应的输入图片的高度。
dest_pic_widthmap表对应的输出图像的宽度。
dest_pic_heightmap表对应的输出图像的高度。
reserved预留参数,为保证后续版本兼容性,请务必使用memset结构体方式进行清零初始化,在代码中必须避免显式对reserved字段进行访问。

父主题: VPC图像处理

hi_warp_transform_param

说明

定义Remap变换参数结构体。

定义

typedef struct {
hi_vpc_pic_info src;
hi_vpc_pic_info dst;
hi_transform_config transform_config;
} hi_warp_transform_param;

成员

成员名称描述
src输入图片信息
dst输出图片信息。
transform_config仿射/透视/Remap变换配置信息。

父主题: VPC图像处理

hi_transform_config

说明

定义仿射/透视/Remap变换配置结构体。

定义

typedef struct {
hi_u32 interpolation;
hi_vpc_bord_type border_type;
hi_vpc_scalar scalar_value;
} hi_transform_config;

成员

成员名称描述
interpolation缩放算法。 Atlas 200/500 A2推理产品支持如下缩放算法:
- 0:业界通用的Bilinear算法
- 1:业界通用的Nearest neighbor 算法
border_type边界填充的类型。 Atlas 200/500 A2推理产品支持如下取值:
- 0:寄存器固定值
- 1:边界复制模式
scalar_value图像填充的像素值,只支持3通道。 如果输入图片格式为YUV400,则val[0]存放Y分量,val[1]、val[2]、val[3]预留,需初始化为0。

父主题: VPC图像处理

hi_morph_shapes

说明

定义滤波卷积形状。

定义

typedef enum {
MORPH_RECT = 0,
MORPH_CROSS = 1,
MORPH_ELLIPSE = 2,
MORPH_MAX = 100
} hi_morph_shapes;

成员

成员名称描述
MORPH_RECT矩形。
MORPH_CROSS交叉形,预留字段,暂不支持。
MORPH_ELLIPSE椭圆形,预留字段,暂不支持。
MORPH_MAX最大可支持的卷积滤波形状,预留字段,暂不支持。

父主题: VPC图像处理

在线提单