Processor for Resize images.
More...
#include <resize.h>
|
static bool | Run (FDMat *mat, int width, int height, float scale_w=-1.0, float scale_h=-1.0, int interp=1, bool use_scale=false, ProcLib lib=ProcLib::DEFAULT) |
| Process the input images. More...
|
|
◆ Run()
bool fastdeploy::vision::Resize::Run |
( |
FDMat * |
mat, |
|
|
int |
width, |
|
|
int |
height, |
|
|
float |
scale_w = -1.0 , |
|
|
float |
scale_h = -1.0 , |
|
|
int |
interp = 1 , |
|
|
bool |
use_scale = false , |
|
|
ProcLib |
lib = ProcLib::DEFAULT |
|
) |
| |
|
static |
Process the input images.
- Parameters
-
[in] | mat | The input image data, result = mat * alpha + beta |
[in] | width | width of the output image. |
[in] | height | height of the output image. |
[in] | scale_w | scale of width, deafult is -1.0. |
[in] | scale_h | scale of height, deafult is -1.0. |
[in] | interp | interpolation method, deafult is 1. |
[in] | use_scale | to define wheather to scale the image, deafult is true. |
[in] | lib | to define OpenCV or FlyCV or CVCUDA will be used. |
- Returns
- true if the process successed, otherwise false
◆ SetWidthAndHeight()
bool fastdeploy::vision::Resize::SetWidthAndHeight |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Process the input images.
- Parameters
-
[in] | width | set the value of the width parameter |
[in] | height | set the value of the height parameter |
The documentation for this class was generated from the following files:
- /fastdeploy/my_work/FastDeploy/fastdeploy/vision/common/processors/resize.h
- /fastdeploy/my_work/FastDeploy/fastdeploy/vision/common/processors/resize.cc