Skip to content
Snippets Groups Projects
snapshot_source.hpp 704 B
Newer Older
#pragma once
#ifndef _FTL_RGBD_SNAPSHOT_SOURCE_HPP_
#define _FTL_RGBD_SNAPSHOT_SOURCE_HPP_

#include <loguru.hpp>

#include <ftl/rgbd/source.hpp>
#include <ftl/rgbd/snapshot.hpp>

namespace ftl {
namespace rgbd {
namespace detail {

class SnapshotSource : public detail::Source {
	public:
	SnapshotSource(ftl::rgbd::Source *);
Sebastian Hahta's avatar
Sebastian Hahta committed
	SnapshotSource(ftl::rgbd::Source *, ftl::rgbd::Snapshot &snapshot, const std::string &id);
	~SnapshotSource() {};

	bool compute(int n, int b);
	bool isReady() { return true; }

	//void reset();
	private:
Sebastian Hahta's avatar
Sebastian Hahta committed
	size_t frame_idx_;
	size_t camera_idx_;
	
	ftl::rgbd::Snapshot snapshot_;

	cv::Mat snap_rgb_;
	cv::Mat snap_depth_;
};

}
}
}

#endif  // _FTL_RGBD_SNAPSHOT_SOURCE_HPP_