Skip to content
Snippets Groups Projects

Implements #183 depth ray correspondences

Merged Nicolas Pope requested to merge feature/183/depthray into master
9 files
+ 375
145
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -376,6 +376,11 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
@@ -376,6 +376,11 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
cv::Mat tmp;
cv::Mat tmp;
switch(channel_) {
switch(channel_) {
 
case Channel::Confidence:
 
if (depth_.rows == 0) { break; }
 
visualizeEnergy(depth_, tmp, 1.0);
 
texture_.update(tmp);
 
break;
case Channel::Energy:
case Channel::Energy:
if (depth_.rows == 0) { break; }
if (depth_.rows == 0) { break; }
visualizeEnergy(depth_, tmp, 10.0);
visualizeEnergy(depth_, tmp, 10.0);
@@ -398,7 +403,6 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
@@ -398,7 +403,6 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
break;
break;
case Channel::Flow:
case Channel::Flow:
case Channel::Confidence:
case Channel::Normals:
case Channel::Normals:
case Channel::Right:
case Channel::Right:
if (depth_.rows == 0 || depth_.type() != CV_8UC3) { break; }
if (depth_.rows == 0 || depth_.type() != CV_8UC3) { break; }
Loading