[moved from opencv] fix build error on Jetson TX1 and TX2

adopted to keep using of C++11

original commit: c07af090f5
pull/2573/head^2
Tomoaki Teshima 5 years ago committed by Alexander Alekhin
parent 58f9a9e4da
commit 3b597b9e2f
  1. 2
      modules/cudaimgproc/src/cuda/canny.cu
  2. 2
      modules/cudaoptflow/src/cuda/tvl1flow.cu

@ -128,7 +128,7 @@ namespace canny
template <
class T,
class Norm,
typename = std::enable_if_t<std::is_base_of<SrcTex, T>::value>
typename = typename std::enable_if<std::is_base_of<SrcTex, T>::value>::type
>
__global__ void calcMagnitudeKernel(const T src, PtrStepi dx, PtrStepi dy, PtrStepSzf mag, const Norm norm)
{

@ -155,7 +155,7 @@ namespace tvl1flow
template <
typename T,
typename = std::enable_if_t<std::is_base_of<SrcTex, T>::value>
typename = typename std::enable_if<std::is_base_of<SrcTex, T>::value>::type
>
__global__ void warpBackwardKernel(
const PtrStepSzf I0, const T src, const PtrStepf u1, const PtrStepf u2,

Loading…
Cancel
Save