acl.himpi.vpc_lut_remap
C Prototype |
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 Function |
task_id, ret = acl.himpi.vpc_lut_remap(chn, transform_param, remap_lut, milli_sec) |
Function Usage |
Remaps an image based on the input pixel position remapping LUT. This API is asynchronous. The Atlas 200/300/500 Inference Product does not support this API. The Atlas Training Series Product does not support this API. |
Input Description |
chn: int, image processing channel ID.
transform_param: dict, remapping transformation parameter dictionary. For details, see hi_warp_transform_param. remap_lut: 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 (ms).
|
Return Value |
ret: int, error code.
task_id: task ID, used to identify a task. |