3.07 LIDAR edge cases

This commit is contained in:
alex
2017-09-22 20:56:59 +01:00
parent 4fb5d0e31f
commit 1fa96c4d57
4 changed files with 72 additions and 14 deletions

View File

@@ -101,7 +101,7 @@ int tile_load_lidar(tile_t *tile, char *filename){
for (size_t w = 0; w < tile->width && pch != NULL; w++) {
/* If the data is less than a *magic* minimum, normalize it to zero */
nextval = atoi(pch);
if (nextval <= -9999)
if (nextval <= 0)
nextval = 0;
tile->data[h*tile->width + w] = nextval;
loaded++;