diff --git a/modules/ocl/include/opencv2/ocl/ocl.hpp b/modules/ocl/include/opencv2/ocl/ocl.hpp index 9884a6a65..d36686fb8 100644 --- a/modules/ocl/include/opencv2/ocl/ocl.hpp +++ b/modules/ocl/include/opencv2/ocl/ocl.hpp @@ -1092,6 +1092,9 @@ namespace cv oclMat image_scale; // effect size of input image (might be different from original size after scaling) Size effect_size; + + private: + oclMat gauss_w_lut; }; diff --git a/modules/ocl/src/hog.cpp b/modules/ocl/src/hog.cpp index 1f8afe559..5c67d2b26 100644 --- a/modules/ocl/src/hog.cpp +++ b/modules/ocl/src/hog.cpp @@ -55,7 +55,6 @@ using namespace cv::ocl; #define CELLS_PER_BLOCK_Y 2 #define NTHREADS 256 -static oclMat gauss_w_lut; static bool hog_device_cpu; namespace cv