10 #ifndef __READER_RAW_HPP 11 #define __READER_RAW_HPP 13 #include <Eigen/Dense> 43 std::string
name()
const;
45 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 std::ifstream raw_fs_;
49 size_t depth_image_total_;
50 size_t rgba_image_total_;
51 size_t depth_data_size_;
52 size_t rgba_data_size_;
53 size_t depth_total_size_;
54 size_t rgba_total_size_;
56 static constexpr
size_t depth_pixel_size_ =
sizeof(uint16_t);
58 static constexpr
size_t rgba_pixel_size_ = 3 *
sizeof(uint8_t);
60 static constexpr
size_t res_size_ = 2 *
sizeof(uint32_t);
62 bool readResolution(std::ifstream& fs, Eigen::Vector2i& res);
Definition: reader_base.hpp:46
Base abstract class for dataset readers.
Definition: reader_base.hpp:139
ReaderStatus
The result of trying to read a depth/RGB image or a pose.
Definition: reader_base.hpp:105
Reader for SLAMBench 1.0 .raw files.
Definition: reader_raw.hpp:28
void restart()
Restart reading from the beginning.
std::string name() const
The name of the reader.
RAWReader(const ReaderConfig &c)
Construct a RAWReader from a ReaderConfig.
Helper wrapper to allocate and de-allocate octants in the octree.
Definition: colour_utils.hpp:17