1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 04:25:42 +08:00

cuda: add compatibility layer for depreciated vector types

This commit is contained in:
cudawarped
2025-08-23 09:24:27 +03:00
parent 91c38c92b6
commit 1e67ec20e4
10 changed files with 65 additions and 39 deletions

View File

@@ -47,11 +47,14 @@
#define OPENCV_CUDEV_UTIL_TYPE_TRAITS_DETAIL_HPP
#include "../../common.hpp"
#include "opencv2/core/cuda/cuda_compat.hpp"
namespace cv { namespace cudev {
namespace type_traits_detail
{
using cv::cuda::device::compat::double4;
template <typename T> struct IsSignedIntergral { enum {value = 0}; };
template <> struct IsSignedIntergral<schar> { enum {value = 1}; };
template <> struct IsSignedIntergral<short> { enum {value = 1}; };

View File

@@ -48,9 +48,12 @@
#include "vec_traits.hpp"
#include "saturate_cast.hpp"
#include "opencv2/core/cuda/cuda_compat.hpp"
namespace cv { namespace cudev {
using cv::cuda::device::compat::double4;
//! @addtogroup cudev
//! @{

View File

@@ -47,8 +47,14 @@
#define OPENCV_CUDEV_UTIL_VEC_TRAITS_HPP
#include "../common.hpp"
#include "opencv2/core/cuda/cuda_compat.hpp"
namespace cv { namespace cudev {
namespace cv {
using cv::cuda::device::compat::double4;
using cv::cuda::device::compat::make_double4;
namespace cudev {
//! @addtogroup cudev
//! @{