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

Use discon support for MLS

parent 42f89571
No related branches found
No related tags found
No related merge requests found
Pipeline #16828 passed
...@@ -334,7 +334,7 @@ static void run(ftl::Configurable *root) { ...@@ -334,7 +334,7 @@ static void run(ftl::Configurable *root) {
pipeline1->append<ftl::operators::CrossSupport>("cross2")->set("discon_support", true); pipeline1->append<ftl::operators::CrossSupport>("cross2")->set("discon_support", true);
pipeline1->append<ftl::operators::CullDiscontinuity>("remove_discontinuity"); pipeline1->append<ftl::operators::CullDiscontinuity>("remove_discontinuity");
//pipeline1->append<ftl::operators::AggreMLS>("mls"); // Perform MLS (using smoothing channel) //pipeline1->append<ftl::operators::AggreMLS>("mls"); // Perform MLS (using smoothing channel)
pipeline1->append<ftl::operators::VisCrossSupport>("viscross"); //->set("enabled", false); pipeline1->append<ftl::operators::VisCrossSupport>("viscross")->set("enabled", false);
pipeline1->append<ftl::operators::MultiViewMLS>("mvmls"); pipeline1->append<ftl::operators::MultiViewMLS>("mvmls");
// Alignment // Alignment
......
...@@ -61,7 +61,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda ...@@ -61,7 +61,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda
LOG(ERROR) << "Required normals channel missing for MLS"; LOG(ERROR) << "Required normals channel missing for MLS";
return false; return false;
} }
if (!f.hasChannel(Channel::Support1)) { if (!f.hasChannel(Channel::Support2)) {
LOG(ERROR) << "Required cross support channel missing for MLS"; LOG(ERROR) << "Required cross support channel missing for MLS";
return false; return false;
} }
...@@ -214,7 +214,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda ...@@ -214,7 +214,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda
} }
ftl::cuda::mls_aggr_horiz( ftl::cuda::mls_aggr_horiz(
f.createTexture<uchar4>(Channel::Support1), f.createTexture<uchar4>(Channel::Support2),
f.createTexture<float4>(Channel::Normals), f.createTexture<float4>(Channel::Normals),
normals_horiz_[i], normals_horiz_[i],
f.createTexture<float>(Channel::Depth), f.createTexture<float>(Channel::Depth),
...@@ -228,7 +228,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda ...@@ -228,7 +228,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda
); );
ftl::cuda::mls_aggr_vert( ftl::cuda::mls_aggr_vert(
f.getTexture<uchar4>(Channel::Support1), f.getTexture<uchar4>(Channel::Support2),
normals_horiz_[i], normals_horiz_[i],
f.getTexture<float4>(Channel::Normals), f.getTexture<float4>(Channel::Normals),
centroid_horiz_[i], centroid_horiz_[i],
......
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