17 #include "fastdeploy/vision/common/processors/base.h" 26 explicit LimitShort(
int max_short = -1,
int min_short = -1,
int interp = 1) {
27 max_short_ = max_short;
28 min_short_ = min_short;
37 bool ImplByOpenCV(
Mat* mat);
39 bool ImplByFlyCV(
Mat* mat);
41 std::string Name() {
return "LimitShort"; }
52 static bool Run(
Mat* mat,
int max_short = -1,
int min_short = -1,
53 int interp = 1, ProcLib lib = ProcLib::DEFAULT);
54 int GetMaxShort()
const {
return max_short_; }
static bool Run(Mat *mat, int max_short=-1, int min_short=-1, int interp=1, ProcLib lib=ProcLib::DEFAULT)
Process the input images.
Definition: limit_short.cc:86
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
Processor for Limit images by short edge with given paramters.
Definition: limit_short.h:24
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16