vpc_lut_remap
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
√ |
Function Usage
Remaps an image based on the input pixel position remapping LUT. This API is asynchronous.
Prototype
- C Prototype
1hi_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 Function
1task_id, ret = acl.himpi.vpc_lut_remap(chn, transform_param, remap_lut, milli_sec)
Parameter Description
Parameter |
Description |
|---|---|
chn |
Int, channel ID for image processing.
|
transform_param |
Dict, remapping transformation parameter dictionary. For details, see hi_warp_transform_param. |
remap_lut |
Dict, information about the pixel position remapping LUT. For details, see hi_remap_lut. Call acl.himpi.vpc_get_affine_lut, acl.himpi.vpc_get_perspective_lut, or acl.himpi.vpc_get_remap_lut to obtain the pixel position remapping LUT in advance. However, the resizing algorithm of this API must be the same as that of the get API. Otherwise, the remapping result may not meet the expectation. |
milli_sec |
Int, timeout interval, in milliseconds.
|
Return Value Description
Return Value |
Description |
|---|---|
task_id |
Int, task ID, used to identify a task. |
ret |
Int, error code.
|
Restrictions
Version |
Restriction |
|---|---|
|
|
|