This commit is contained in:
@@ -681,10 +681,9 @@ namespace cv { namespace gpu { namespace mathfunc
|
||||
float power;
|
||||
PowOp(float power_) : power(power_) {}
|
||||
|
||||
template<typename T>
|
||||
__device__ __forceinline__ T operator()(const T& e) const
|
||||
{
|
||||
return saturate_cast<T>(__powf((float)e, power));
|
||||
return saturate_cast<U>(__powf((float)e, power));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user