descriptions/ImageIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_IMAGEIO_HPP
4 #define LVR2_IO_HDF5_IMAGEIO_HPP
5 
6 #include <boost/optional.hpp>
7 #include <opencv2/core.hpp>
8 #include <opencv2/core/traits.hpp>
9 
10 namespace lvr2 {
11 
12 template<typename FeatureBase>
13 class ImageIO {
14 public:
15 
16  void saveImage(std::string groupName,
17  std::string datasetName,
18  const cv::Mat& img
19  );
20 
21  boost::optional<cv::Mat> loadImage(std::string groupName,
22  std::string datasetName);
23 
24 protected:
25 
26  FeatureBase* m_featureBase = static_cast<FeatureBase*>(this);
27 
28 };
29 
30 } // namespace lvr2
31 
32 #include "ImageIO.tcc"
33 
34 #endif // LVR2_IO_HDF5_IMAGEIO_HPP
Manager Class for all FeatureBase components located in hdf5 directory.
Definition: FeatureBase.hpp:31
void saveImage(std::string groupName, std::string datasetName, const cv::Mat &img)
boost::optional< cv::Mat > loadImage(std::string groupName, std::string datasetName)
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:06