Commit 20e17e51 authored by kokerf's avatar kokerf

fix memset error in CombinedDescriptor

parent 94d1b9bc
...@@ -222,7 +222,7 @@ namespace cv ...@@ -222,7 +222,7 @@ namespace cv
for (int j = n2 + 2; j <= width - n2 - 2; j++) for (int j = n2 + 2; j <= width - n2 - 2; j++)
{ {
int c[nr_img]; 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 step = step_start; step <= step_end; step += step_inc)
{ {
for (int ii = - n2; ii <= + n2_stop; ii += step) for (int ii = - n2; ii <= + n2_stop; ii += step)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment