Skip to content
Snippets Groups Projects

Resolves #343 GUI and Frame Refactor

Merged Nicolas Pope requested to merge feature/gui2 into master
Compare and Show latest version
5 files
+ 80
20
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -5,6 +5,19 @@
#include <nlohmann/json.hpp>
#include <loguru.hpp>
#include "ftl/operators/smoothing.hpp"
#include "ftl/operators/colours.hpp"
#include "ftl/operators/normals.hpp"
#include "ftl/operators/filling.hpp"
#include "ftl/operators/segmentation.hpp"
#include "ftl/operators/mask.hpp"
#include "ftl/operators/antialiasing.hpp"
#include "ftl/operators/mvmls.hpp"
#include "ftl/operators/clipping.hpp"
#include <ftl/operators/disparity.hpp>
#include <ftl/operators/poser.hpp>
#include <ftl/operators/detectandtrack.hpp>
using ftl::net::Universe;
using ftl::stream::Feed;
using ftl::codecs::Channel;
@@ -73,6 +86,28 @@ static void run(ftl::Configurable *root) {
auto *filter = feed->filter({Channel::Colour, Channel::Depth});
feed->set("uri", root->value("uri", std::string("ftl://ftlab.utu.fi/reconstruction")));
feed->setPipelineCreator([](ftl::operators::Graph *pipeline) {
pipeline->append<ftl::operators::DepthChannel>("depth"); // Ensure there is a depth channel
pipeline->append<ftl::operators::DisparityBilateralFilter>("bilateral_filter")->value("enabled", false);
pipeline->append<ftl::operators::DisparityToDepth>("calculate_depth")->value("enabled", false);
pipeline->append<ftl::operators::ColourChannels>("colour"); // Convert BGR to BGRA
pipeline->append<ftl::operators::ClipScene>("clipping")->value("enabled", false);
pipeline->append<ftl::operators::DetectAndTrack>("facedetection")->value("enabled", false);
pipeline->append<ftl::operators::ArUco>("aruco")->value("enabled", false);
//pipeline_->append<ftl::operators::HFSmoother>("hfnoise"); // Remove high-frequency noise
pipeline->append<ftl::operators::Normals>("normals"); // Estimate surface normals
//pipeline_->append<ftl::operators::SmoothChannel>("smoothing"); // Generate a smoothing channel
//pipeline_->append<ftl::operators::ScanFieldFill>("filling"); // Generate a smoothing channel
pipeline->append<ftl::operators::CrossSupport>("cross");
pipeline->append<ftl::operators::DiscontinuityMask>("discontinuity");
pipeline->append<ftl::operators::CrossSupport>("cross2")->value("discon_support", true);
pipeline->append<ftl::operators::BorderMask>("border_mask")->value("enabled", false);
pipeline->append<ftl::operators::CullDiscontinuity>("remove_discontinuity")->set("enabled", false);
//pipeline_->append<ftl::operators::AggreMLS>("mls"); // Perform MLS (using smoothing channel)
pipeline->append<ftl::operators::VisCrossSupport>("viscross")->value("enabled", false);
pipeline->append<ftl::operators::MultiViewMLS>("mvmls");
pipeline->append<ftl::operators::Poser>("poser")->value("enabled", false);
});
//feed->lowLatencyMode();
feed->startStreaming(filter);
Loading