vpc_get_perspective_lut
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
√ |
Description
Obtains a pixel position remapping LUT of perspective transformation according to the pixel position coordinates in the input and output images.
Prototype
- C Prototype
1hi_s32hi_mpi_vpc_get_perspective_lut(hi_point_pair_info *point_pair_info, hi_u32 interpolation, hi_remap_lut *remap_lut)
- Python Function
1remap_lut, ret = acl.himpi.vpc_get_perspective_lut(point_pair_info, interpolation, remap_lut)
Parameters
Parameter |
Description |
|---|---|
point_pair_info |
Dict, contains four pairs of pixel coordinates in the input and output images. Each pair contains pixel coordinates of an input image and an output image, respectively. For details, see hi_point_pair_info. |
interpolation |
Int. The following resizing algorithms are supported:
|
remap_lut |
dict, dictionary of the pixel position remapping LUT for 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
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.
|