summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-04-20 14:02:04 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-04-20 14:02:04 +0200
commitdd2d59a1b26437904744d0604e85dfdcb6fbad27 (patch)
tree93cd375354f8d2826855871add92b2ea2f6be2a8
parentdd1d4771adb3583403e0fe90e09eaa79a9ff2e88 (diff)
downloadcv-dd2d59a1b26437904744d0604e85dfdcb6fbad27.tar.gz
cv-dd2d59a1b26437904744d0604e85dfdcb6fbad27.tar.bz2
cv-dd2d59a1b26437904744d0604e85dfdcb6fbad27.zip
hst: Use the middle of a cell for visualization
-rw-r--r--hst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hst.c b/hst.c
index e6628b1..6207b57 100644
--- a/hst.c
+++ b/hst.c
@@ -114,9 +114,9 @@ main(int argc, char *argv[])
cell = &hst.cells[p[0] / INTERVAL][p[1] / INTERVAL][p[2] / INTERVAL];
calculate_index(&hst, cell->max, &i, &j, &k);
- p[0] = i * INTERVAL;
- p[1] = j * INTERVAL;
- p[2] = k * INTERVAL;
+ p[0] = i * INTERVAL + INTERVAL / 2;
+ p[1] = j * INTERVAL + INTERVAL / 2;
+ p[2] = k * INTERVAL + INTERVAL / 2;
}
}