mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 04:36:36 +08:00
fixed a bug in scanRows CUDA kernel (part of nppStIntegral)
uninitialized value
(cherry picked from commit 81ebe28c24
)
This commit is contained in:
parent
d308ed3712
commit
f08dd510fa
@ -288,7 +288,7 @@ __global__ void scanRows(T_in *d_src, Ncv32u texOffs, Ncv32u srcWidth, Ncv32u sr
|
||||
Ncv32u curElemOffs = offsetX + threadIdx.x;
|
||||
T_out curScanElem;
|
||||
|
||||
T_in curElem;
|
||||
T_in curElem = 0;
|
||||
T_out curElemMod;
|
||||
|
||||
if (curElemOffs < srcWidth)
|
||||
|
Loading…
Reference in New Issue
Block a user