Newer
Older
#include "colour.hpp"
#include <loguru.hpp>

Sebastian Hahta
committed
#include <opencv2/opencv.hpp>
#include <Eigen/Eigen>
#include <opencv2/core/eigen.hpp>

Sebastian Hahta
committed
using namespace ftl::rgbd;

Sebastian Hahta
committed
using std::string;

Sebastian Hahta
committed
SnapshotSource::SnapshotSource(ftl::rgbd::Source *host, SnapshotReader &reader, const string &id) : detail::Source(host) {

Sebastian Hahta
committed
reader.getCameraRGBD(id, rgb_, depth_, pose, params_);
ftl::rgbd::colourCorrection(rgb_, host->value("gamma", 1.0f), host->value("temperature", 6500));

Sebastian Hahta
committed
setPose(pose);
}