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:
@@ -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}; };
|
||||
|
@@ -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
|
||||
//! @{
|
||||
|
||||
|
@@ -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
|
||||
//! @{
|
||||
|
Reference in New Issue
Block a user