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

Fix confidence display

parent 2b2a64f9
No related branches found
No related tags found
2 merge requests!195Renderer improvements,!193Tweaks to improve reconstruct
...@@ -153,6 +153,8 @@ __global__ void corresponding_point_kernel( ...@@ -153,6 +153,8 @@ __global__ void corresponding_point_kernel(
// Generate a colour correspondence value // Generate a colour correspondence value
const auto colour2 = c2.tex2D(linePos.x, linePos.y); const auto colour2 = c2.tex2D(linePos.x, linePos.y);
// TODO: Check if other colour dissimilarities are better...
const float cweight = ftl::cuda::colourWeighting(colour1, colour2, params.colour_smooth); const float cweight = ftl::cuda::colourWeighting(colour1, colour2, params.colour_smooth);
// Generate a depth correspondence value // Generate a depth correspondence value
......
...@@ -249,7 +249,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda ...@@ -249,7 +249,7 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda
for (size_t i=0; i<in.frames.size(); ++i) { for (size_t i=0; i<in.frames.size(); ++i) {
auto &f1 = in.frames[i]; auto &f1 = in.frames[i];
//f1.get<GpuMat>(Channel::Depth2).setTo(cv::Scalar(0.0f), cvstream); //f1.get<GpuMat>(Channel::Depth2).setTo(cv::Scalar(0.0f), cvstream);
f1.get<GpuMat>(Channel::Confidence).setTo(cv::Scalar(0.0f), cvstream); //f1.get<GpuMat>(Channel::Confidence).setTo(cv::Scalar(0.0f), cvstream);
Eigen::Vector4d d1(0.0, 0.0, 1.0, 0.0); Eigen::Vector4d d1(0.0, 0.0, 1.0, 0.0);
d1 = in.sources[i]->getPose() * d1; d1 = in.sources[i]->getPose() * d1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment