acl.himpi.vpc_get_remap_lut

C Prototype

hi_s32 hi_mpi_vpc_get_remap_lut(hi_map_param *map_param, hi_remap_lut *remap_lut)

Python Function

remap_lut, ret =acl.himpi.vpc_get_remap_lut(map_param, remap_lut)

Function Usage

Based on the remap table (such as affine, perspective, and fisheye) input, the common Bilinear algorithm (similar to the computation process of the OpenCV algorithm) is used to obtain the pixel position remap table used by the system. This API is synchronous.

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Input Description

map_param: dict, dictionary of original map information of a user. For details, see hi_map_param.

remap_lut: dict, dictionary of information about the pixel position remapping LUT of perspective transformation. For details, see hi_remap_lut. You need to allocate buffer for the lut attribute in advance. The lut_size attribute of the buffer size can be obtained by calling acl.himpi.vpc_get_lut_mem_size.

Return Value

remap_lut: dict, dictionary of information about the pixel position remapping LUT of perspective transformation. After this API is successfully called, you can obtain the LUT information of affine transformation by using the address in the lut attribute.

ret: int, error code.