vpc_resize
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Function Usage
Resizes an input image with the aspect ratio preserved or to specific width and height. This API is asynchronous.
Prototype
- C Prototype
1hi_s32 hi_mpi_vpc_resize (hi_vpc_chn chn, const hi_vpc_pic_info *source_pic, hi_vpc_pic_info *dest_pic, hi_double fx, hi_double fy, hi_u32 interpolation, hi_u32 *task_id, hi_s32 milli_sec);
- Python Function
1task_id, ret = acl.himpi.vpc_resize(chn, source_pic, dest_pic, fx, fy, interpolation, milli_sec)
Parameter Description
|
Parameter |
Description |
|---|---|
|
chn |
Int, channel ID for image processing.
|
|
source_pic |
Dict, source image information. For details about the restrictions, see Restrictions. |
|
dest_pic |
Dict, destination image information. |
|
fx |
Float, resize factor for the width. |
|
fy |
Float, resize factor for the height. |
|
interpolation |
Int, resizing algorithm. You are advised to use the same resizing algorithm as that in model training.
For the
For the
For the
|
|
milli_sec |
Int, timeout interval, in milliseconds.
|
Return Value Description
|
Return Value |
Description |
|---|---|
|
task_id |
Int, task ID, used to identify a task. |
|
ret |
Int, error code.
|
Restrictions
|
Version |
Restrictions |
|---|---|
|
|
|
|
|
|