supereight
Loading...
Searching...
No Matches
reader_interiornet.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020-2022 Smart Robotics Lab, Imperial College London, Technical University of Munich
3 * SPDX-FileCopyrightText: 2020-2022 Nils Funk
4 * SPDX-FileCopyrightText: 2020-2022 Sotiris Papatheodorou
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef SE_READER_INTERIORNET_HPP
9#define SE_READER_INTERIORNET_HPP
10
11#include <opencv2/core/mat.hpp>
12
13#include "reader_base.hpp"
14
15namespace se {
16
20class InteriorNetReader : public Reader {
21 public:
27
29 void restart();
30
31
36 std::string name() const;
37
38 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
39
40 private:
41 static constexpr float interiornet_inverse_scale_ = 1.0f / 1000.0f;
42 const float inverse_scale_;
43
44 cv::Mat projection_inv_;
45
46 std::vector<std::string> depth_filenames_;
47
48 std::vector<std::string> rgb_filenames_;
49
50 ReaderStatus nextDepth(Image<float>& depth_image);
51
52 ReaderStatus nextColour(Image<RGB>& colour_image);
53};
54
55
56
57} // namespace se
58
59
60
61#endif //SE_READER_INTERIORNET_HPP
Definition image.hpp:19
Reader for the InteriorNet dataset.
Definition reader_interiornet.hpp:20
std::string name() const
The name of the reader.
InteriorNetReader(const Config &c)
Construct an InteriorNetReader from a Config.
void restart()
Restart reading from the beginning.
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