Skip to content
Snippets Groups Projects

Resolves #343 GUI and Frame Refactor

Merged Nicolas Pope requested to merge feature/gui2 into master
2 files
+ 17
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -47,8 +47,19 @@ bool MultiViewMLS::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cuda
bool show_consistency = config()->value("show_consistency", false);
bool show_adjustment = config()->value("show_adjustment", false);
if (in.frames.size() < 1) return false;
auto size = in.firstFrame().get<GpuMat>(Channel::Depth).size();
if (in.frames.size() < 1 || in.count == 0) return false;
cv::Size size(0,0);
for (auto &f : in.frames) {
if (f.hasChannel(Channel::Depth)) {
size = f.get<GpuMat>(Channel::Depth).size();
break;
}
}
if (size.width == 0) {
in.firstFrame().message(ftl::data::Message::Warning_MISSING_CHANNEL, "Missing Depth Channel in MVMLS operator");
return false;
}
// Make sure we have enough buffers
while (normals_horiz_.size() < in.frames.size()) {
Loading