From 9fbce6c8c869f1303b6db084afe9ce5b809b1771 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 22 Feb 2017 08:44:10 +0800 Subject: [PATCH] fix multiband_blend.cu build error in issue opencv_contrib#1012 --- modules/stitching/src/cuda/multiband_blend.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stitching/src/cuda/multiband_blend.cu b/modules/stitching/src/cuda/multiband_blend.cu index daa0005ec0..27eb92044b 100644 --- a/modules/stitching/src/cuda/multiband_blend.cu +++ b/modules/stitching/src/cuda/multiband_blend.cu @@ -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(v.x / (w + WEIGHT_EPS)),