Commit d9283713bf60875d85ee065d14bc8438b2338ca8

Authored by DepthDeluxe
1 parent 53cab7ba

removed threshold plugin

openbr/plugins/cuda/threshold.cpp deleted
1 -#include <iostream>  
2 -  
3 -#include <opencv2/opencv.hpp>  
4 -#include <opencv2/gpu/gpu.hpp>  
5 -  
6 -#include <openbr/plugins/openbr_internal.h>  
7 -  
8 -using namespace std;  
9 -  
10 -using namespace cv;  
11 -using namespace cv::gpu;  
12 -  
13 -namespace br  
14 -{  
15 - class CUDAThreshold : public UntrainableTransform  
16 - {  
17 - Q_OBJECT  
18 -  
19 -private:  
20 - void project(const Template &src, Template &dst) const  
21 - {  
22 - // get the mat to send to the GPU  
23 - GpuMat gpuMat_src, gpuMat_dst;  
24 -  
25 - try  
26 - {  
27 - // copy the contents to the GPU  
28 - gpuMat_src.upload(src.m());  
29 -  
30 - threshold(gpuMat_src, gpuMat_dst, 128.0, 255.0, CV_THRESH_BINARY);  
31 -  
32 - gpuMat_dst.download(dst.m());  
33 - }  
34 - catch(const cv::Exception& ex)  
35 - {  
36 - cout << "Error: " << ex.what() << endl;  
37 - }  
38 - }  
39 - };  
40 -  
41 - BR_REGISTER(Transform, CUDAThreshold);  
42 -}  
43 -  
44 -#include "cuda/threshold.moc"