FastDeploy  latest
Fast & Easy to Deploy!
Static Public Member Functions | List of all members
fastdeploy::vision::StridePad Class Reference

Processor for padding images with stride. More...

#include <stride_pad.h>

Inheritance diagram for fastdeploy::vision::StridePad:
Inheritance graph
[legend]
Collaboration diagram for fastdeploy::vision::StridePad:
Collaboration graph
[legend]

Static Public Member Functions

static bool Run (Mat *mat, int stride, const std::vector< float > &value=std::vector< float >(), ProcLib lib=ProcLib::DEFAULT)
 Process the input images. More...
 

Additional Inherited Members

- Public Member Functions inherited from fastdeploy::vision::Processor
virtual bool operator() (FDMat *mat)
 operator () for calling processor in this way: processor(mat) More...
 
virtual bool operator() (FDMat *mat, ProcLib lib)
 operator () for calling processor in this way: processor(mat, lib) This function is for backward compatibility, will be removed in the near future, please use operator()(FDMat* mat) instead and set proc_lib in mat. More...
 
virtual bool operator() (FDMatBatch *mat_batch)
 operator () for calling processor in this way: processor(mat_batch) More...
 

Detailed Description

Processor for padding images with stride.

Member Function Documentation

◆ Run()

bool fastdeploy::vision::StridePad::Run ( Mat mat,
int  stride,
const std::vector< float > &  value = std::vector<float>(),
ProcLib  lib = ProcLib::DEFAULT 
)
static

Process the input images.

Parameters
[in]matThe input image data, result = mat * alpha + beta
[in]stridestride of the padding.
[in]valuevalue vector used by padding of the output image.
[in]libto define OpenCV or FlyCV or CVCUDA will be used.
Returns
true if the process successed, otherwise false

The documentation for this class was generated from the following files: