From 565fad9df0e5d509939f5c3d17d550a6f3e4b7b5 Mon Sep 17 00:00:00 2001 From: Comment Date: Wed, 19 Feb 2014 16:11:19 +0000 Subject: extend border correct --- offsetProject/src/ofApp.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'offsetProject/src/ofApp.cpp') diff --git a/offsetProject/src/ofApp.cpp b/offsetProject/src/ofApp.cpp index 3399aca..28b44e8 100644 --- a/offsetProject/src/ofApp.cpp +++ b/offsetProject/src/ofApp.cpp @@ -48,8 +48,8 @@ void ofApp::setup() { //b extend captured frame to this ratio //c mip map this down into prepared containers - int tiles_w=ceil(kinect.width/(MAX_TILE_SIZE*2))*2; - int tiles_h=ceil(kinect.height/(MAX_TILE_SIZE*2))*2; + int tiles_w=ceil((float)kinect.width/(MAX_TILE_SIZE*2))*2; + int tiles_h=ceil((float)kinect.height/(MAX_TILE_SIZE*2))*2; extend_w=(tiles_w)*MAX_TILE_SIZE; extend_h=(tiles_h)*MAX_TILE_SIZE; @@ -65,7 +65,7 @@ void ofApp::setup() { for (int i=MIN_TILE_SIZE,l=0;i<=MAX_TILE_SIZE;i*=2,l++) { colourTiles[l].allocate(extend_w/i,extend_h/i); depthTiles[l].allocate(extend_w/i,extend_h/i); - cerr<<"level "<