17 #include "fastdeploy/vision/common/processors/base.h" 19 #include <cvcuda/OpCopyMakeBorder.hpp> 21 #include "fastdeploy/vision/common/processors/cvcuda_utils.h" 31 Pad(
int top,
int bottom,
int left,
int right,
32 const std::vector<float>& value) {
39 bool ImplByOpenCV(
Mat* mat);
41 bool ImplByFlyCV(
Mat* mat);
44 bool ImplByCvCuda(
FDMat* mat);
46 std::string Name() {
return "Pad"; }
59 static bool Run(
Mat* mat,
const int& top,
const int& bottom,
const int& left,
60 const int& right,
const std::vector<float>& value,
61 ProcLib lib = ProcLib::DEFAULT);
83 std::vector<float> value_;
85 cvcuda::CopyMakeBorder cvcuda_pad_op_;
Processor for padding images.
Definition: pad.h:29
bool SetPaddingSize(int top, int bottom, int left, int right)
Process the input images.
Definition: pad.h:70
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