From 12dcb1555e18be0ca95944b3289671072533f88b Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 24 Sep 2015 10:01:26 -0400 Subject: [PATCH] Missed one conversion of CV_TYPE to cv::DataType --- .../cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp b/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp index 5cf0234b6d..46f1bc5485 100644 --- a/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp +++ b/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp @@ -18,7 +18,7 @@ template struct step_functor : public thrust::unary_function::DEPTH); + CV_Assert(mat.depth() == cv::DataType::depth); columns = mat.cols; step = mat.step / sizeof(T); channels = mat.channels();