1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Merge pull request #8240 from hewj03:issue_1012_contrib

This commit is contained in:
Maksim Shabunin
2017-02-22 15:51:07 +00:00
@@ -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)),