Skip to content
Snippets Groups Projects

Implements #183 depth ray correspondences

Merged Nicolas Pope requested to merge feature/183/depthray into master
Files
9
@@ -376,6 +376,11 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
cv::Mat tmp;
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);
@@ -398,7 +403,6 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
break;
case Channel::Flow:
case Channel::Confidence:
case Channel::Normals:
case Channel::Right:
if (depth_.rows == 0 || depth_.type() != CV_8UC3) { break; }
Loading