17 #include "fastdeploy/vision/common/processors/base.h" 19 #include <cvcuda/OpCopyMakeBorder.hpp> 21 #include "fastdeploy/vision/common/processors/cvcuda_utils.h" 32 PadToSize(
int width,
int height,
const std::vector<float>& value) {
37 bool ImplByOpenCV(
Mat* mat);
39 bool ImplByFlyCV(
Mat* mat);
42 bool ImplByCvCuda(
FDMat* mat);
44 std::string Name() {
return "PadToSize"; }
55 static bool Run(
Mat* mat,
int width,
int height,
56 const std::vector<float>& value,
57 ProcLib lib = ProcLib::DEFAULT);
70 bool CheckArgs(
FDMat* mat);
73 std::vector<float> value_;
75 cvcuda::CopyMakeBorder cvcuda_pad_op_;
Processor for padding images to given size.
Definition: pad_to_size.h:29
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
void SetWidthHeight(int width, int height)
Process the input images.
Definition: pad_to_size.h:64
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