diff --git a/modules/gpuimgproc/test/test_histogram.cpp b/modules/gpuimgproc/test/test_histogram.cpp index c3d17d2a1..8a5b22a95 100644 --- a/modules/gpuimgproc/test/test_histogram.cpp +++ b/modules/gpuimgproc/test/test_histogram.cpp @@ -72,11 +72,11 @@ GPU_TEST_P(HistEven, Accuracy) int hbins = 30; float hranges[] = {0.0f, 180.0f}; - std::vector srcs; - cv::gpu::split(loadMat(hsv), srcs); + std::vector srcs; + cv::split(hsv, srcs); cv::gpu::GpuMat hist; - cv::gpu::histEven(srcs[0], hist, hbins, (int)hranges[0], (int)hranges[1]); + cv::gpu::histEven(loadMat(srcs[0]), hist, hbins, (int)hranges[0], (int)hranges[1]); cv::MatND histnd; int histSize[] = {hbins}; diff --git a/modules/gpuimgproc/test/test_precomp.hpp b/modules/gpuimgproc/test/test_precomp.hpp index 4196aa9fe..71ba4020c 100644 --- a/modules/gpuimgproc/test/test_precomp.hpp +++ b/modules/gpuimgproc/test/test_precomp.hpp @@ -55,7 +55,6 @@ #include "opencv2/ts/gpu_test.hpp" #include "opencv2/gpuimgproc.hpp" -#include "opencv2/gpuarithm.hpp" #include "opencv2/imgproc.hpp" #endif