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();