Integrate FalconCV to boost image preprocessing (#331)

Remove opencv cuda code
This commit is contained in:
Jason
2022-10-09 10:34:51 +08:00
committed by GitHub
parent 5d4372955f
commit 0a0b601853
37 changed files with 95 additions and 591 deletions

View File

@@ -24,10 +24,7 @@ class Normalize : public Processor {
bool is_scale = true,
const std::vector<float>& min = std::vector<float>(),
const std::vector<float>& max = std::vector<float>());
bool CpuRun(Mat* mat);
#ifdef ENABLE_OPENCV_CUDA
bool GpuRun(Mat* mat);
#endif
bool ImplByOpenCV(Mat* mat);
std::string Name() { return "Normalize"; }
// While use normalize, it is more recommend not use this function
@@ -44,7 +41,7 @@ class Normalize : public Processor {
const std::vector<float>& std, bool is_scale = true,
const std::vector<float>& min = std::vector<float>(),
const std::vector<float>& max = std::vector<float>(),
ProcLib lib = ProcLib::OPENCV_CPU);
ProcLib lib = ProcLib::OPENCV);
private:
std::vector<float> alpha_;
std::vector<float> beta_;