Commit 9fbce6c8 authored by Wenju He's avatar Wenju He

fix multiband_blend.cu build error in issue opencv_contrib#1012

parent 526220a1
......@@ -90,7 +90,7 @@ namespace cv { namespace cuda { namespace device
if (x < width && y < height)
{
static const float WEIGHT_EPS = 1e-5f;
const float WEIGHT_EPS = 1e-5f;
const short3 v = ((short3*)src.ptr(y))[x];
float w = weight.ptr(y)[x];
((short3*)src.ptr(y))[x] = make_short3(static_cast<short>(v.x / (w + WEIGHT_EPS)),
......
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