Skip to main content

hi_vpc_crop_region

hi_vpc_chn

说明

描述图片处理通道号。

定义

typedef hi_s32 hi_vpc_chn;

父主题: VPC图像处理

hi_vpc_pic_info

说明

图像信息结构体,用来描述VPC功能输入和输出图片信息。

定义

typedef struct {
hi_void* picture_address;
hi_u32 picture_buffer_size;
hi_u32 picture_width;
hi_u32 picture_height;
hi_u32 picture_width_stride;
hi_u32 picture_height_stride;
hi_pixel_format picture_format;
} hi_vpc_pic_info;

成员

成员名称描述
picture_address存放图片数据的Device地址。
picture_buffer_size存放图片数据的缓冲区大小。
picture_width图片真实宽。
picture_height图片真实高。
picture_width_stride图片宽stride。
picture_height_stride图片高stride。
picture_format目标图片的格式。

父主题: VPC图像处理

hi_vpc_crop_region

说明

VPC抠图功能需要的参数。

定义

typedef struct {
hi_u32 top_offset;
hi_u32 left_offset;
hi_u32 crop_width;
hi_u32 crop_height;
} hi_vpc_crop_region;

成员

成员名称描述
top_offset上偏移。
left_offset左偏移。
crop_width抠图区域宽。
crop_height抠图区域高。

父主题: VPC图像处理

hi_vpc_resize_info

说明

VPC缩放功能需要的参数。

定义

typedef struct {
hi_u32 resize_width;
hi_u32 resize_height;
hi_u32 interpolation;
} hi_vpc_resize_info;

成员

成员名称描述
resize_width缩放之后的宽。
resize_height缩放之后的高。
interpolation缩放算法。 Atlas 200/500 A2推理产品,支持如下缩放算法:
- 0:业界通用的Bilinear算法(与OpenCV-3.4.2版本算法的计算结果相同)
- 1:业界通用的Nearest neighbor 算法(与OpenCV-3.4.2版本算法的计算结果相同)

父主题: VPC图像处理

hi_vpc_crop_region_info

说明

VPC抠图功能需要的参数。

定义

typedef struct {
hi_vpc_pic_info dest_pic_info;
hi_vpc_crop_region crop_region;
} hi_vpc_crop_region_info;

成员

成员名称描述
dest_pic_info抠图目标图片信息。
crop_region抠图区域信息。

父主题: VPC图像处理

在线提单