mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
fix multiband_blend.cu build error in issue opencv_contrib#1012
This commit is contained in:
parent
526220a171
commit
9fbce6c8c8
@ -90,7 +90,7 @@ namespace cv { namespace cuda { namespace device
|
|||||||
|
|
||||||
if (x < width && y < height)
|
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];
|
const short3 v = ((short3*)src.ptr(y))[x];
|
||||||
float w = weight.ptr(y)[x];
|
float w = weight.ptr(y)[x];
|
||||||
((short3*)src.ptr(y))[x] = make_short3(static_cast<short>(v.x / (w + WEIGHT_EPS)),
|
((short3*)src.ptr(y))[x] = make_short3(static_cast<short>(v.x / (w + WEIGHT_EPS)),
|
||||||
|
Loading…
Reference in New Issue
Block a user