17 #include "fastdeploy/vision/common/processors/base.h" 19 #include <cvcuda/OpCopyMakeBorder.hpp> 21 #include "fastdeploy/vision/common/processors/cvcuda_utils.h" 32 StridePad(
int stride,
const std::vector<float>& value) {
36 bool ImplByOpenCV(
Mat* mat);
38 bool ImplByFlyCV(
Mat* mat);
41 bool ImplByCvCuda(
FDMat* mat);
43 std::string Name() {
return "StridePad"; }
53 static bool Run(
Mat* mat,
int stride,
54 const std::vector<float>& value = std::vector<float>(),
55 ProcLib lib = ProcLib::DEFAULT);
59 std::vector<float> value_;
61 cvcuda::CopyMakeBorder cvcuda_pad_op_;
Processor for padding images with stride.
Definition: stride_pad.h:29
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
Processor base class for processors in fastdeploy/vision/common/processors.
Definition: base.h:42
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16