From 348c2d638cbbc18ebe0b2884811684c0d8b5d39e Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Tue, 10 Dec 2019 12:34:48 +0200 Subject: [PATCH] Add GUI adjust float image max value --- applications/gui/src/camera.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/gui/src/camera.cpp b/applications/gui/src/camera.cpp index 0a9d04c04..64a100a59 100644 --- a/applications/gui/src/camera.cpp +++ b/applications/gui/src/camera.cpp @@ -340,10 +340,10 @@ static void visualizeEnergy( const cv::Mat &depth, cv::Mat &out, depth.convertTo(out, CV_8U, 255.0f / max_depth); //out = 255 - out; - cv::Mat mask = (depth >= 39.0f); // TODO (mask for invalid pixels) + //cv::Mat mask = (depth >= 39.0f); // TODO (mask for invalid pixels) applyColorMap(out, out, cv::COLORMAP_JET); - out.setTo(cv::Scalar(255, 255, 255), mask); + //out.setTo(cv::Scalar(255, 255, 255), mask); } static void drawEdges( const cv::Mat &in, cv::Mat &out, @@ -447,7 +447,7 @@ const GLTexture &ftl::gui::Camera::captureFrame() { case Channel::Smoothing: case Channel::Confidence: if (im2_.rows == 0) { break; } - visualizeEnergy(im2_, tmp, 1.0); + visualizeEnergy(im2_, tmp, screen_->root()->value("float_image_max", 1.0f)); texture2_.update(tmp); break; -- GitLab