diff --git a/applications/gui/src/main.cpp b/applications/gui/src/main.cpp index 3df95ca79874cebcf2c9b96439e5d60cf268adb5..ea45a23ce6c883e49f9f87340f6458723a6c893d 100644 --- a/applications/gui/src/main.cpp +++ b/applications/gui/src/main.cpp @@ -118,7 +118,7 @@ class FTLApplication : public nanogui::Screen { using namespace nanogui; net_ = net; - auto cwindow = new ftl::gui::ControlWindow(this, controller); + cwindow_ = new ftl::gui::ControlWindow(this, controller); swindow_ = new ftl::gui::SourceWindow(this, controller); //src_ = nullptr; @@ -203,6 +203,9 @@ class FTLApplication : public nanogui::Screen { float scalar = (key == 264) ? 0.99f : 1.01f; eye_ = ((eye_ - centre_) * scalar) + centre_; return true; + } else if (action == 1 && key == 'H') { + swindow_->setVisible(!swindow_->visible()); + cwindow_->setVisible(!cwindow_->visible()); } return false; } @@ -277,6 +280,7 @@ class FTLApplication : public nanogui::Screen { private: ftl::gui::SourceWindow *swindow_; + ftl::gui::ControlWindow *cwindow_; //std::vector<SourceViews> sources_; ftl::net::Universe *net_; nanogui::GLShader mShader; diff --git a/applications/reconstruct/src/registration.cpp b/applications/reconstruct/src/registration.cpp index ccb17ac5078eac6443b88c87fa8e5afce30e0e9c..ec27f43ba89cb1bdf71f57c5ba74c29ac4e25999 100644 --- a/applications/reconstruct/src/registration.cpp +++ b/applications/reconstruct/src/registration.cpp @@ -233,7 +233,7 @@ Eigen::Matrix4f findTransformation(vector<PointCloud<PointXYZ>::Ptr> clouds_sour // score new transformation double score = 0.0; for (size_t j = 0; j < n_clouds; ++j) { - score += validate.validateTransformation(clouds_source[j], clouds_target[j], T); // CHECK Is use of T here a mistake?? + score += validate.validateTransformation(clouds_source[j], clouds_target[j], T_tmp); // CHECK Is use of T here a mistake?? } score /= n_clouds;