Fixed build if PCL is not built with OpenNI

This commit is contained in:
matlabbe
2015-07-24 20:42:36 -04:00
parent f5dac46252
commit 911ab709af
5 changed files with 48 additions and 14 deletions
+2 -2
View File
@@ -302,11 +302,11 @@ int main(int argc, char * argv[])
Camera * camera = 0;
if(UDirectory::exists(path))
{
camera = new CameraImages(path, startAt, false, false, 1/rate);
camera = new CameraImages(path, startAt, false, false, 1.0f/rate);
}
else
{
camera = new CameraVideo(path, 1/rate);
camera = new CameraVideo(path, false, 1.0f/rate);
}
if(!camera || !camera->init())