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

Disable new features by default

parent 30012bab
No related branches found
No related tags found
1 merge request!354Add full 3D MLS and carving
Pipeline #33567 passed
...@@ -257,7 +257,7 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre ...@@ -257,7 +257,7 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre
bool use_depth = scene_->anyHasChannel(Channel::Depth) || scene_->anyHasChannel(Channel::GroundTruth); bool use_depth = scene_->anyHasChannel(Channel::Depth) || scene_->anyHasChannel(Channel::GroundTruth);
// For each source depth map, verify results // For each source depth map, verify results
if (value("pre_carve_inputs", true) && !_alreadySeen()) { if (value("pre_carve_inputs", false) && !_alreadySeen()) {
for (size_t i=0; i < scene_->frames.size(); ++i) { for (size_t i=0; i < scene_->frames.size(); ++i) {
//if (!scene_->hasFrame(i)) continue; //if (!scene_->hasFrame(i)) continue;
auto &f = scene_->frames[i].cast<ftl::rgbd::Frame>(); auto &f = scene_->frames[i].cast<ftl::rgbd::Frame>();
...@@ -427,7 +427,7 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre ...@@ -427,7 +427,7 @@ void CUDARender::_mesh(ftl::rgbd::Frame &out, const Eigen::Matrix4d &t, cudaStre
// Generate actual depth map using MLS with mesh as estimate // Generate actual depth map using MLS with mesh as estimate
float mls_smoothing = value("mls_smooth", 0.05f); float mls_smoothing = value("mls_smooth", 0.05f);
int mls_iter = value("mls_iter", 3); int mls_iter = value("mls_iter", 3);
if (value("mls_full", true)) { if (value("mls_full", false)) {
// Clear buffers // Clear buffers
mls_centroid_.create(params_.camera.height, params_.camera.width, CV_32FC4); mls_centroid_.create(params_.camera.height, params_.camera.width, CV_32FC4);
mls_contrib_.create(params_.camera.height, params_.camera.width, CV_32F); mls_contrib_.create(params_.camera.height, params_.camera.width, CV_32F);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment