hi_mpi_vpc_get_perspective_lut
The
The
Description
Obtains a pixel position remapping LUT of perspective transformation according to the pixel position coordinates in the input and output images. This API is synchronous.
Prototype
hi_s32 hi_mpi_vpc_get_perspective_lut(hi_point_pair_info *point_pair_info, hi_u32 interpolation, hi_remap_lut *remap_lut)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
point_pair_info |
Input |
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. |
interpolation |
Input |
The following resizing algorithms are supported:
|
remap_lut |
Input/Output |
Pixel position remapping LUT of perspective transformation. In the hi_remap_lut structure:
|
Returns
- 0: success
- Other values: failure (VPC Return Codes)
Parent topic: VPC