include
lvr2
io
descriptions
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
lvr2::ImageIO::saveImage
void saveImage(std::string groupName, std::string datasetName, const cv::Mat &img)
lvr2
Definition:
BaseBufferManipulators.hpp:39
lvr2::ImageIO::loadImage
boost::optional< cv::Mat > loadImage(std::string groupName, std::string datasetName)
lvr2::FeatureBase
Manager Class for all FeatureBase components located in hdf5 directory.
Definition:
FeatureBase.hpp:31
lvr2::ImageIO::m_featureBase
FeatureBase * m_featureBase
Definition:
descriptions/ImageIO.hpp:26
lvr2::ImageIO
Definition:
descriptions/ImageIO.hpp:13
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 Wed Mar 2 2022 00:37:23