Bugfix: do not divide by NB if 0

This commit is contained in:
Simon Giraudot 2017-06-01 12:02:16 +02:00
parent b5c585b8e3
commit a8b534de2f
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ public:
mean += get(point_map, *(input.begin()+(*it))).z();
++ nb;
}
if (nb == 0)
continue;
mean /= nb;
dem(i,j) = mean;
}