cloudFromDepthRGB() iterating over depth image size instead of RGB image size. DbViewer: fixed scale of image view when depth is smaller than rgb.

This commit is contained in:
matlabbe
2016-09-01 16:42:34 -04:00
parent 87b9f30dce
commit dd2f89628e
2 changed files with 27 additions and 28 deletions

View File

@@ -2629,7 +2629,7 @@ void DatabaseViewer::update(int value,
if(!imgDepth.isNull())
{
view->setImageDepth(imgDepth);
if(!img.isNull())
if(img.isNull())
{
rect = imgDepth.rect();
}