From d9283713bf60875d85ee065d14bc8438b2338ca8 Mon Sep 17 00:00:00 2001 From: DepthDeluxe Date: Sun, 10 Apr 2016 15:02:24 -0400 Subject: [PATCH] removed threshold plugin --- openbr/plugins/cuda/threshold.cpp | 44 -------------------------------------------- 1 file changed, 0 insertions(+), 44 deletions(-) delete mode 100644 openbr/plugins/cuda/threshold.cpp diff --git a/openbr/plugins/cuda/threshold.cpp b/openbr/plugins/cuda/threshold.cpp deleted file mode 100644 index 219dccf..0000000 --- a/openbr/plugins/cuda/threshold.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include - -#include -#include - -#include - -using namespace std; - -using namespace cv; -using namespace cv::gpu; - -namespace br -{ - class CUDAThreshold : public UntrainableTransform - { - Q_OBJECT - -private: - void project(const Template &src, Template &dst) const - { - // get the mat to send to the GPU - GpuMat gpuMat_src, gpuMat_dst; - - try - { - // copy the contents to the GPU - gpuMat_src.upload(src.m()); - - threshold(gpuMat_src, gpuMat_dst, 128.0, 255.0, CV_THRESH_BINARY); - - gpuMat_dst.download(dst.m()); - } - catch(const cv::Exception& ex) - { - cout << "Error: " << ex.what() << endl; - } - } - }; - - BR_REGISTER(Transform, CUDAThreshold); -} - -#include "cuda/threshold.moc" -- libgit2 0.21.4