descriptions/MatrixIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_MATRIXIO_HPP
4 #define LVR2_IO_HDF5_MATRIXIO_HPP
5 
6 #include <Eigen/Dense>
7 
8 namespace lvr2 {
9 
10 template<typename FeatureBase>
11 class MatrixIO {
12 public:
13 
14  template<typename _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
15  void saveMatrix(std::string groupName,
16  std::string datasetName,
17  const Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>& mat
18  );
19 
20  template<typename MatrixT>
21  MatrixT loadMatrix(std::string groupName,
22  std::string datasetName);
23 
24 protected:
25  FeatureBase* m_featureBase = static_cast<FeatureBase*>(this);
26 
27 };
28 
29 } // namespace lvr2
30 
31 #include "MatrixIO.tcc"
32 
33 #endif // LVR2_IO_HDF5_MATRIXIO_HPP
Manager Class for all FeatureBase components located in hdf5 directory.
Definition: FeatureBase.hpp:31
MatrixT loadMatrix(std::string groupName, std::string datasetName)
void saveMatrix(std::string groupName, std::string datasetName, const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &mat)
FeatureBase * m_featureBase


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08