From de204fe413701fe3661adbcf529164229eeebd98 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Fri, 22 Jul 2011 13:24:27 +0000 Subject: [PATCH] --- modules/gpu/src/cuda/element_operations.cu | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)); } };