25#ifndef itkHDF5ImageIO_h
26#define itkHDF5ImageIO_h
27#include "ITKIOHDF5Export.h"
139 Write(
const void * buffer)
override;
168 WriteScalar(
const std::string & path,
const unsigned long long value);
170 template <
typename TScalar>
174 template <
typename TScalar>
178 template <
typename TScalar>
180 WriteVector(
const std::string & path,
const std::vector<TScalar> & vec);
182 template <
typename TScalar>
187 WriteDirections(
const std::string & path,
const std::vector<std::vector<double>> & dir);
189 std::vector<std::vector<double>>
192 template <
typename TType>
195 template <
typename TType>
198 template <
typename TType>
201 const std::string & HDFPath,
202 const std::string & name,
203 unsigned long numElements);
219 bool m_ImageInformationWritten{
false };
Class that defines how to read HDF5 file format. HDF5 IMAGE FILE FORMAT - As much information as I ca...
bool CanWriteFile(const char *name) override
void WriteString(const std::string &path, const std::string &value)
void WriteScalar(const std::string &path, const long long value)
void WriteVector(const std::string &path, const std::vector< TScalar > &vec)
void Write(const void *buffer) override
std::unique_ptr< H5::DataSet > m_VoxelDataSet
void StoreMetaData(MetaDataDictionary *metaDict, const std::string &HDFPath, const std::string &name, unsigned long numElements)
std::vector< std::vector< double > > ReadDirections(const std::string &path)
void WriteScalar(const std::string &path, const TScalar &value)
void WriteScalar(const std::string &path, const unsigned long value)
void ReadImageInformation() override
void WriteImageInformation() override
bool WriteMeta(const std::string &name, MetaDataObjectBase *metaObjBase)
SizeType GetHeaderSize() const override
Returns the size of the header in the file.
void ResetToInitialState()
void Read(void *buffer) override
void PrintSelf(std::ostream &os, Indent indent) const override
std::vector< TScalar > ReadVector(const std::string &DataSetName)
void WriteScalar(const std::string &path, const long value)
bool WriteMetaArray(const std::string &name, MetaDataObjectBase *metaObjBase)
std::unique_ptr< H5::H5File > m_H5File
void WriteScalar(const std::string &path, const unsigned long long value)
std::string ReadString(const std::string &path)
bool CanReadFile(const char *FileNameToRead) override
TScalar ReadScalar(const std::string &DataSetName)
void WriteDirections(const std::string &path, const std::vector< std::vector< double > > &dir)
void SetupStreaming(H5::DataSpace *imageSpace, H5::DataSpace *slabSpace)
void WriteScalar(const std::string &path, const bool value)
void WriteString(const std::string &path, const char *s)
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
A base class for specific ImageIO file formats which support streaming.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....