vpc_lut_remap
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
x |
|
x |
|
√ |
|
x |
功能说明
基于输入像素位置重映射表的方式对图片进行Remap处理。异步接口。
函数原型
- C函数原型
1
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函数
1
task_id, ret = acl.himpi.vpc_lut_remap(chn, transform_param, remap_lut, milli_sec)
参数说明
参数名 |
说明 |
---|---|
chn |
int,图片处理通道号。
|
transform_param |
dict,Remap变换参数字典,具体请参见hi_warp_transform_param。 |
remap_lut |
dict,像素位置重映射表信息,具体请参见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,超时时间配置,单位是毫秒,取值范围如下。
|
返回值说明
返回值 |
说明 |
---|---|
task_id |
int,任务分配的ID,用来区分任务。 |
ret |
int,错误码。
|
约束说明
版本 |
约束 |
---|---|
|
|
|