From ef430882a191e82e89384574fd421b0c62d6076f Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Mon, 5 Sep 2011 05:40:57 +0000 Subject: [PATCH] fixed build under linux --- modules/gpu/src/opencv2/gpu/device/border_interpolate.hpp | 1 + modules/gpu/test/test_imgproc.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/gpu/src/opencv2/gpu/device/border_interpolate.hpp b/modules/gpu/src/opencv2/gpu/device/border_interpolate.hpp index 53b8189f7..50c929a4a 100644 --- a/modules/gpu/src/opencv2/gpu/device/border_interpolate.hpp +++ b/modules/gpu/src/opencv2/gpu/device/border_interpolate.hpp @@ -45,6 +45,7 @@ #include "saturate_cast.hpp" #include "vec_traits.hpp" +#include "vec_math.hpp" namespace cv { namespace gpu { namespace device { diff --git a/modules/gpu/test/test_imgproc.cpp b/modules/gpu/test/test_imgproc.cpp index 5e2658142..b6d132360 100644 --- a/modules/gpu/test/test_imgproc.cpp +++ b/modules/gpu/test/test_imgproc.cpp @@ -272,8 +272,8 @@ INSTANTIATE_TEST_CASE_P CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1, CV_32FC3, CV_32FC4 ), - testing::Values(cv::INTER_NEAREST, cv::INTER_LINEAR), - testing::Values(cv::BORDER_REFLECT101, cv::BORDER_REPLICATE, cv::BORDER_CONSTANT, cv::BORDER_REFLECT, cv::BORDER_WRAP) + testing::Values((int)cv::INTER_NEAREST, (int)cv::INTER_LINEAR), + testing::Values((int)cv::BORDER_REFLECT101, (int)cv::BORDER_REPLICATE, (int)cv::BORDER_CONSTANT, (int)cv::BORDER_REFLECT, (int)cv::BORDER_WRAP) ) );