17 #ifndef __mitkNrrdTbssImageReader_h
18 #define __mitkNrrdTbssImageReader_h
24 #include "itkVectorImage.h"
45 itkFactorylessNewMacro(
Self)
48 const
char* GetFileName() const override;
49 void SetFileName(const
char* aFileName) override;
50 const
char* GetFilePrefix() const override;
51 void SetFilePrefix(const
char* aFilePrefix) override;
52 const
char* GetFilePattern() const override;
53 void SetFilePattern(const
char* aFilePattern) override;
55 static
bool CanReadFile(const
std::
string filename, const
std::
string filePrefix, const
std::
string filePattern);
60 virtual
void GenerateData() override;
61 virtual
void GenerateOutputInformation() override;
64 std::
string m_FileName;
65 std::
string m_FilePrefix;
66 std::
string m_FilePattern;
68 std::vector<
std::pair<
std::
string,
int> > m_GroupInfo;
71 itk::TimeStamp m_CacheTime;
74 void Tokenize(const
std::
string& str,
75 std::vector<
std::
string>& tokens,
76 const
std::
string& delimiters = " ")
79 std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
81 std::string::size_type pos = str.find_first_of(delimiters, lastPos);
83 while (std::string::npos != pos || std::string::npos != lastPos)
86 tokens.push_back(str.substr(lastPos, pos - lastPos));
88 lastPos = str.find_first_not_of(delimiters, pos);
90 pos = str.find_first_of(delimiters, lastPos);
97 void operator=(
const Self&);
103 #endif // __mitkNrrdTbssImageReader_h
Superclass of all classes generating some kind of mitk::BaseData.
itk::VectorImage< float, 3 > ImageType
DataCollection - Class to facilitate loading/accessing structured data.
Superclass of all classes generating diffusion volumes (instances of class DiffusionImage) as output...
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
mitk::TbssImage OutputType
Interface class of readers that read from files.
this class encapsulates diffusion volumes (vectorimages not yet supported by mitkImage) ...
TbssImageSource TbssVolSourceType