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

Merge branch 'feature/207/showalign' into 'master'

Implements #207 showing aligned input as virtual view

Closes #207

See merge request nicolas.pope/ftl!136
parents b1b5ad8a 1988dd17
No related branches found
No related tags found
1 merge request!136Implements #207 showing aligned input as virtual view
Pipeline #15504 passed
......@@ -311,7 +311,16 @@ bool Splatter::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) {
out.create<GpuMat>(Channel::Depth, Format<float>(camera.width, camera.height));
out.create<GpuMat>(Channel::Colour, Format<uchar4>(camera.width, camera.height));
if (scene_->frames.size() == 0) return false;
int aligned_source = value("aligned_source",-1);
if (aligned_source >= 0 && aligned_source < scene_->frames.size()) {
// FIXME: Output may not be same resolution as source!
scene_->frames[aligned_source].swapTo(Channel::Depth + Channel::Colour, out);
return true;
}
auto &g = scene_->frames[0].get<GpuMat>(Channel::Colour);
temp_.create<GpuMat>(Channel::Colour, Format<float4>(camera.width, camera.height));
......
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