3 #ifndef LVR2_IO_HDF5_IMAGEIO_HPP 4 #define LVR2_IO_HDF5_IMAGEIO_HPP 6 #include <boost/optional.hpp> 7 #include <opencv2/core.hpp> 8 #include <opencv2/core/traits.hpp> 15 namespace hdf5features {
17 template<
typename Derived>
21 void save(std::string groupName,
22 std::string datasetName,
27 std::string datasetName,
32 std::string datasetName);
34 boost::optional<cv::Mat>
load(std::string groupName,
35 std::string datasetName);
37 boost::optional<cv::Mat>
loadImage(std::string groupName,
38 std::string datasetName);
43 cv::Mat
createMat(std::vector<size_t>& dims);
53 #include "ImageIO.tcc" 55 #endif // LVR2_IO_HDF5_IMAGEIO_HPP boost::optional< cv::Mat > loadImage(std::string groupName, std::string datasetName)
boost::optional< cv::Mat > load(HighFive::Group &group, std::string datasetName)
void save(std::string groupName, std::string datasetName, const cv::Mat &img)
cv::Mat createMat(std::vector< size_t > &dims)