fix memset error in CombinedDescriptor

pull/2312/head
kokerf 5 years ago
parent 94d1b9bcd8
commit 20e17e51db
  1. 2
      modules/stereo/include/opencv2/stereo/descriptor.hpp

@ -222,7 +222,7 @@ namespace cv
for (int j = n2 + 2; j <= width - n2 - 2; j++)
{
int c[nr_img];
memset(c,0,nr_img);
memset(c, 0, sizeof(c[0]) * nr_img);
for(int step = step_start; step <= step_end; step += step_inc)
{
for (int ii = - n2; ii <= + n2_stop; ii += step)

Loading…
Cancel
Save