Added librealsense support #100

This commit is contained in:
matlabbe
2016-07-26 18:39:34 -04:00
parent dbb29c7661
commit 9d09c509ab
17 changed files with 821 additions and 155 deletions

View File

@@ -745,11 +745,10 @@ void ImageView::setImageDepth(const QImage & imageDepth)
_image.width() > _imageDepth.width() &&
_image.height() > _imageDepth.height() &&
_image.width() % _imageDepth.width() == 0 &&
_image.height() % _imageDepth.height() == 0 &&
_image.width() / _imageDepth.width() == _image.height() / _imageDepth.height())
_image.height() % _imageDepth.height() == 0)
{
// scale depth to rgb
_imageDepth = _imageDepth.scaledToWidth(_image.width());
_imageDepth = _imageDepth.scaled(_image.size());
}
if(_graphicsView->isVisible())