diff --git a/modules/gpu/src/cuda/element_operations.cu b/modules/gpu/src/cuda/element_operations.cu index f4673619e0..d7c7f5e38c 100644 --- a/modules/gpu/src/cuda/element_operations.cu +++ b/modules/gpu/src/cuda/element_operations.cu @@ -680,11 +680,10 @@ namespace cv { namespace gpu { namespace mathfunc { float power; PowOp(float power_) : power(power_) {} - - template + __device__ __forceinline__ T operator()(const T& e) const { - return saturate_cast(__powf((float)e, power)); + return saturate_cast(__powf((float)e, power)); } };