17 #include "fastdeploy/vision/common/processors/base.h" 26 bool ImplByOpenCV(
FDMat* mat);
28 bool ImplByFlyCV(
FDMat* mat);
30 virtual std::string Name() {
return "BGR2RGB"; }
38 static bool Run(
FDMat* mat, ProcLib lib = ProcLib::DEFAULT);
45 bool ImplByOpenCV(
FDMat* mat);
47 bool ImplByFlyCV(
FDMat* mat);
49 std::string Name() {
return "RGB2BGR"; }
57 static bool Run(
FDMat* mat, ProcLib lib = ProcLib::DEFAULT);
64 bool ImplByOpenCV(
FDMat* mat);
66 bool ImplByFlyCV(
FDMat* mat);
68 virtual std::string Name() {
return "BGR2GRAY"; }
76 static bool Run(
FDMat* mat, ProcLib lib = ProcLib::DEFAULT);
83 bool ImplByOpenCV(
FDMat* mat);
85 bool ImplByFlyCV(
FDMat* mat);
87 std::string Name() {
return "RGB2GRAY"; }
95 static bool Run(
FDMat* mat, ProcLib lib = ProcLib::DEFAULT);
Processor for tansform images from RGB to BGR.
Definition: color_space_convert.h:43
Processor for tansform images from BGR to RGB.
Definition: color_space_convert.h:24
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 tansform images from RGB to GRAY.
Definition: color_space_convert.h:81
Processor for tansform images from BGR to GRAY.
Definition: color_space_convert.h:62
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16