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

Fix for reprojection scaling

parent 5bf4c783
No related branches found
No related tags found
1 merge request!190Implements #263 reconstruction scaling
Pipeline #16916 passed
...@@ -231,8 +231,8 @@ void Triangular::__reprojectChannel(ftl::rgbd::Frame &output, ftl::codecs::Chann ...@@ -231,8 +231,8 @@ void Triangular::__reprojectChannel(ftl::rgbd::Frame &output, ftl::codecs::Chann
} }
//Eigen::Affine3f sm = Eigen::Affine3f(Eigen::Scaling(scale)); //Eigen::Affine3f sm = Eigen::Affine3f(Eigen::Scaling(scale));
auto transform = MatrixConversion::toCUDA(t.cast<float>().inverse() * s->getPose().cast<float>().inverse()) * params_.m_viewMatrixInverse; auto transform = MatrixConversion::toCUDA(s->getPose().cast<float>().inverse() * t.cast<float>().inverse()) * params_.m_viewMatrixInverse;
auto transformR = MatrixConversion::toCUDA(t.cast<float>().inverse() * s->getPose().cast<float>().inverse()).getFloat3x3(); auto transformR = MatrixConversion::toCUDA(s->getPose().cast<float>().inverse()).getFloat3x3();
if (mesh_) { if (mesh_) {
ftl::cuda::reproject( ftl::cuda::reproject(
......
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