fixed fatal error (fx==0) on kinect v2 calibration, added tx,ty,tz to camera local transform in Preferences

This commit is contained in:
matlabbe
2015-07-09 10:01:41 -04:00
parent bf4715b73c
commit 3b226a0d92
4 changed files with 44 additions and 18 deletions

View File

@@ -1459,12 +1459,16 @@ SensorData CameraFreenect2::captureImage()
}
}
CameraModel model(
fx, //fx
fy, //fy
cx, //cx
cy, // cy
this->getLocalTransform());
CameraModel model;
if(fx && fy)
{
model=CameraModel(
fx, //fx
fy, //fy
cx, //cx
cy, // cy
this->getLocalTransform());
}
data = SensorData(rgb, depth, model, this->getNextSeqID(), stamp);
listener_->release(frames);