hi_mpi_vpc_get_remap_lut

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

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.

Prototype

hi_s32 hi_mpi_vpc_get_remap_lut(hi_map_param *map_param,  hi_remap_lut *remap_lut)

Parameters

Parameter

Input/Output

Description

map_param

Input

Original map information of a user.

remap_lut

Input/Output

Pixel position remapping LUT.

In the hi_remap_lut structure:
  • When lut is used as an input, you must allocate memory in advance. The memory size lut_size can be obtained by calling hi_mpi_vpc_get_lut_mem_size.
  • When lut is used as an output, you can obtain the affine transformation LUT information from the memory after this API is successfully called.

Returns