From 1d79e1313318f6c5acf013ea9373a7e1330b64a4 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Mon, 6 May 2013 15:21:11 +0400 Subject: [PATCH] removed dependecy from gpuarithm --- modules/gpuimgproc/test/test_histogram.cpp | 6 +++--- modules/gpuimgproc/test/test_precomp.hpp | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) 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