From d93aedadbddd157bba6e087c175733b82e8eab0f Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sat, 22 Jun 2019 10:15:35 +0300 Subject: [PATCH] Invert and exagerate depth map --- applications/gui/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/gui/src/main.cpp b/applications/gui/src/main.cpp index b5d1695a0..dddcf3c90 100644 --- a/applications/gui/src/main.cpp +++ b/applications/gui/src/main.cpp @@ -403,7 +403,8 @@ class FTLApplication : public nanogui::Screen { case SourceWindow::Mode::depth: if (depth.rows == 0) { break; } imageSize = Vector2f(depth.cols,depth.rows); - depth.convertTo(tmp, CV_8U, 255.0f / 10.0f); + depth.convertTo(tmp, CV_8U, 255.0f / 5.0f); + tmp = 255 - tmp; applyColorMap(tmp, tmp, cv::COLORMAP_JET); texture_.update(tmp); mImageID = texture_.texture(); -- GitLab