vpc_get_remap_lut

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

√

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

x

Atlas 200I/500 A2 inference products

√

Description

Obtains a pixel position remapping LUT used by the system by using the conventional bilinear algorithm (whose compute process is close to that of OpenCV), based on the user-provided remapping LUT (such as affine, perspective, and fisheye). This API is synchronous.

Prototype

  • C Prototype
    1
    hi_s32hi_mpi_vpc_get_remap_lut(hi_map_param *map_param,  hi_remap_lut *remap_lut)
    
  • Python Function
    1
    remap_lut, ret =acl.himpi.vpc_get_remap_lut(map_param, remap_lut)
    

Parameters

Parameter

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 Values

Return Value

Description

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.