Commit de204fe4 authored by Anatoly Baksheev's avatar Anatoly Baksheev

--no commit message

--no commit message
parent 712ea050
...@@ -681,10 +681,9 @@ namespace cv { namespace gpu { namespace mathfunc ...@@ -681,10 +681,9 @@ namespace cv { namespace gpu { namespace mathfunc
float power; float power;
PowOp(float power_) : power(power_) {} PowOp(float power_) : power(power_) {}
template<typename T>
__device__ __forceinline__ T operator()(const T& e) const __device__ __forceinline__ T operator()(const T& e) const
{ {
return saturate_cast<T>(__powf((float)e, power)); return saturate_cast<U>(__powf((float)e, power));
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment