acl.himpi.vpc_lut_remap
c函数原型 |
hi_s32 hi_mpi_vpc_lut_remap(hi_vpc_chn chn, hi_warp_transform_param* transform_param, hi_remap_lut *remap_lut, hi_u32 *task_id, hi_s32 milli_sec) |
---|---|
Python函数 |
task_id, ret = acl.himpi.vpc_lut_remap(chn, transform_param, remap_lut, milli_sec) |
函数功能 |
基于输入像素位置重映射表的方式对图片进行Remap处理。异步接口。 Atlas 200/300/500 推理产品,不支持该接口。 Atlas 训练系列产品,不支持该接口。 Atlas 推理系列产品,不支持该接口。 |
输入说明 |
chn:int,图片处理通道号。
transform_param:dict,Remap变换参数字典,具体请参见hi_warp_transform_param。 remap_lut:像素位置重映射表信息,具体请参见hi_remap_lut。 需提前调用以下get接口获取像素位置重映射表信息:acl.himpi.vpc_get_affine_lut、acl.himpi.vpc_get_perspective_lut或acl.himpi.vpc_get_remap_lut,但本接口的缩放算法需与get接口的缩放算法保持一致,否则可能导致remap结果不符合预期。 milli_sec:int,超时时间配置,单位是毫秒,取值范围如下。
|
返回值说明 |
ret:int,错误码。
task_id:任务分配的ID,用来区分任务。 |
约束说明
版本 |
约束 |
---|---|
Atlas 200I/500 A2推理产品 |
|
Atlas A2训练系列产品/Atlas 800I A2推理产品 |
|