supereight
Loading...
Searching...
No Matches
reader_raw.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 University of Edinburgh, Imperial College London, University of Manchester
3 * SPDX-FileCopyrightText: 2016-2019 Emanuele Vespa
4 * SPDX-FileCopyrightText: 2020-2022 Smart Robotics Lab, Imperial College London, Technical University of Munich
5 * SPDX-FileCopyrightText: 2020-2022 Nils Funk
6 * SPDX-FileCopyrightText: 2020-2022 Sotiris Papatheodorou
7 * SPDX-License-Identifier: MIT
8 */
9
10#ifndef __READER_RAW_HPP
11#define __READER_RAW_HPP
12
13#include "reader_base.hpp"
14
15namespace se {
16
20class RAWReader : public Reader {
21 public:
27
29 void restart();
30
35 std::string name() const;
36
37 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
38
39 private:
40 std::ifstream raw_fs_;
41 size_t depth_image_total_;
42 size_t colour_image_total_;
43 size_t depth_data_size_;
44 size_t colour_data_size_;
45 size_t depth_total_size_;
46 size_t colour_total_size_;
48 static constexpr size_t depth_pixel_size_ = sizeof(uint16_t);
50 static constexpr size_t colour_pixel_size_ = 3 * sizeof(uint8_t);
52 static constexpr size_t res_size_ = 2 * sizeof(uint32_t);
53
54 bool readResolution(std::ifstream& fs, Eigen::Vector2i& res);
55
57
59};
60
61} // namespace se
62
63#endif
Definition image.hpp:19
Reader for SLAMBench 1.0 .raw files.
Definition reader_raw.hpp:20
RAWReader(const Config &c)
Construct a RAWReader from a Config.
void restart()
Restart reading from the beginning.
std::string name() const
The name of the reader.
Base abstract class for dataset readers.
Definition reader_base.hpp:79
Helper wrapper to allocate and de-allocate octants in the octree.
Definition bounded_vector.hpp:14
ReaderStatus
The result of trying to read a depth/RGB image or a pose.
Definition reader_base.hpp:45
Definition reader_base.hpp:81