From f9cbd6394eb024794e80d9adb29ec3be805a5ffc Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sun, 6 Oct 2019 13:38:52 +0300 Subject: [PATCH] Improve confidence render --- applications/gui/src/camera.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/gui/src/camera.cpp b/applications/gui/src/camera.cpp index 84093c23d..fe9967739 100644 --- a/applications/gui/src/camera.cpp +++ b/applications/gui/src/camera.cpp @@ -377,6 +377,10 @@ const GLTexture &ftl::gui::Camera::captureFrame() { switch(channel_) { case Channel::Confidence: + if (depth_.rows == 0) { break; } + visualizeEnergy(depth_, tmp, 1.0); + texture_.update(tmp); + break; case Channel::Energy: if (depth_.rows == 0) { break; } visualizeEnergy(depth_, tmp, 10.0); -- GitLab