Skip to content
Snippets Groups Projects
Commit d93aedad authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Invert and exagerate depth map

parent f227707c
No related branches found
No related tags found
No related merge requests found
...@@ -403,7 +403,8 @@ class FTLApplication : public nanogui::Screen { ...@@ -403,7 +403,8 @@ class FTLApplication : public nanogui::Screen {
case SourceWindow::Mode::depth: case SourceWindow::Mode::depth:
if (depth.rows == 0) { break; } if (depth.rows == 0) { break; }
imageSize = Vector2f(depth.cols,depth.rows); 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); applyColorMap(tmp, tmp, cv::COLORMAP_JET);
texture_.update(tmp); texture_.update(tmp);
mImageID = texture_.texture(); mImageID = texture_.texture();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment