Class HDF5Kernel
Defined in File HDF5Kernel.hpp
Inheritance Relationships
Base Type
public lvr2::FileKernel(Class FileKernel)
Class Documentation
-
class HDF5Kernel : public lvr2::FileKernel
Public Functions
-
HDF5Kernel() = delete
-
HDF5Kernel(const std::string &hdf5file, HDF5KernelConfig config = HDF5KernelConfig())
-
inline ~HDF5Kernel()
-
virtual void saveMeshBuffer(const std::string &group, const std::string &container, const MeshBufferPtr &buffer) const
-
virtual void savePointBuffer(const std::string &group, const std::string &container, const PointBufferPtr &buffer) const
-
virtual void saveImage(const std::string &group, const std::string &container, const cv::Mat &image) const
-
virtual void saveMetaYAML(const std::string &group, const std::string &metaName, const YAML::Node &node) const
-
virtual MeshBufferPtr loadMeshBuffer(const std::string &group, const std::string container) const
-
virtual PointBufferPtr loadPointBuffer(const std::string &group, const std::string &container) const
-
virtual boost::optional<cv::Mat> loadImage(const std::string &group, const std::string &container) const
-
virtual bool loadMetaYAML(const std::string &group, const std::string &container, YAML::Node &node) const
That we don’t return the YAML node is on purpose to use the initial structure to look for the fields that should be loaded!
-
virtual charArr loadCharArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual ucharArr loadUCharArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual shortArr loadShortArray(const std::string &group, const std::string &constainer, std::vector<size_t> &dims) const
-
virtual ushortArr loadUShortArray(const std::string &group, const std::string &constainer, std::vector<size_t> &dims) const
-
virtual uint16Arr loadUInt16Array(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual intArr loadIntArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual uintArr loadUIntArray(const std::string &group, const std::string &constainer, std::vector<size_t> &dims) const
-
virtual lintArr loadLIntArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual ulintArr loadULIntArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual floatArr loadFloatArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual doubleArr loadDoubleArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual boolArr loadBoolArray(const std::string &group, const std::string &container, std::vector<size_t> &dims) const
-
virtual bool exists(const std::string &group) const
-
virtual bool exists(const std::string &group, const std::string &container) const
-
virtual void subGroupNames(const std::string &group, std::vector<string> &subGroupNames) const
-
virtual void subGroupNames(const std::string &group, const std::regex &filter, std::vector<string> &subGroupNames) const
-
virtual std::vector<std::string> listDatasets(const std::string &group) const
-
template<typename T>
ChannelOptional<T> loadChannelOptional(HighFive::Group &g, const std::string &datasetName) const
-
template<typename T>
ChannelOptional<T> loadChannelOptional(const std::string &groupName, const std::string &datasetName) const
-
template<typename T>
void save(std::string groupName, std::string datasetName, const Channel<T> &channel) const
-
template<typename T>
void save(HighFive::Group &g, std::string datasetName, const Channel<T> &channel) const
-
template<typename T>
void save(HighFive::Group &g, std::string datasetName, const Channel<T> &channel, std::vector<hsize_t> &chunkSize) const
-
bool getChannel(const std::string group, const std::string name, FloatChannelOptional &channel) const
getChannel Reads a float attribute channel in the given group with the given name
- Parameters:
group – The associated attribute group
name – The associated attribute name
channel – The pointer to the float channel
- Returns:
true if the channel has been loaded successfully, false otherwise
-
bool getChannel(const std::string group, const std::string name, IndexChannelOptional &channel) const
getChannel Reads an index attribute channel in the given group with the given name
- Parameters:
group – The associated attribute group
name – The associated attribute name
channel – The pointer to the index channel
- Returns:
true if the channel has been loaded successfully, false otherwise
-
bool getChannel(const std::string group, const std::string name, UCharChannelOptional &channel) const
getChannel Reads an unsigned char attribute channel in the given group with the given name
- Parameters:
group – The associated attribute group
name – The associated attribute name
channel – The pointer to the unsigned char channel
- Returns:
true if the channel has been loaded successfully, false otherwise
-
template<typename T>
bool getChannel(const std::string group, const std::string name, boost::optional<AttributeChannel<T>> &channel) const
-
template<typename T>
bool addChannel(const std::string group, const std::string name, const AttributeChannel<T> &channel) const
-
bool addChannel(const std::string group, const std::string name, const FloatChannel &channel) const
addChannel Writes a float attribute channel from the given group with the given name
- Parameters:
group – The associated attribute group
name – The associated attribute name
channel – The pointer to the float channel which should be written
- Returns:
true if the channel has been written successfully, false otherwise
-
bool addChannel(const std::string group, const std::string name, const IndexChannel &channel) const
addChannel Writes an index attribute channel from the given group with the given name
- Parameters:
group – The associated attribute group
name – The associated attribute name
channel – The pointer to the index channel which should be written
- Returns:
true if the channel has been written successfully, false otherwise
-
bool addChannel(const std::string group, const std::string name, const UCharChannel &channel) const
addChannel Writes an unsigned char attribute channel from the given group with the given name
- Parameters:
group – The associated attribute group
name – The associated attribute name
channel – The pointer to the unsigned char channel which should be written
- Returns:
true if the channel has been written successfully, false otherwise
-
template<typename ...Tp>
void save(std::string groupName, std::string datasetName, const VariantChannel<Tp...> &vchannel) const
-
template<typename ...Tp>
void save(HighFive::Group &group, std::string datasetName, const VariantChannel<Tp...> &vchannel) const
-
template<typename VariantChannelT>
boost::optional<VariantChannelT> load(std::string groupName, std::string datasetName) const
-
template<typename VariantChannelT>
boost::optional<VariantChannelT> load(HighFive::Group &group, std::string datasetName) const
-
template<typename VariantChannelT>
boost::optional<VariantChannelT> loadVariantChannel(std::string groupName, std::string datasetName) const
-
template<typename VariantChannelT>
boost::optional<VariantChannelT> loadDynamic(HighFive::DataType dtype, HighFive::Group &group, std::string name) const
-
template<typename ...Tp>
void saveDynamic(HighFive::Group &group, std::string datasetName, const VariantChannel<Tp...> &vchannel) const
-
virtual std::unordered_map<std::string, YAML::Node> metas(const std::string &group) const
-
virtual std::unordered_map<std::string, YAML::Node> metas(const std::string &group, const std::string &sensor_type) const
-
template<typename T>
cv::Mat createMat(const std::vector<size_t> &dims) const
-
HDF5Kernel() = delete