This commit is contained in:
Anatoly Baksheev 2011-07-22 13:24:27 +00:00
parent 712ea05058
commit de204fe413

View File

@ -680,11 +680,10 @@ 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));
}
};