forked from BRAINSia/BRAINSTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNRRDDWIConverter.h
49 lines (38 loc) · 1.02 KB
/
NRRDDWIConverter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Created by Johnson, Hans J on 11/25/16.
//
#ifndef BRAINSTOOLS_NRRDDWICONVERTER_H
#define BRAINSTOOLS_NRRDDWICONVERTER_H
#include "DWIConverter.h"
#include "StringContains.h"
/** specific converter for FSL nifti formatted files*/
class NRRDDWIConverter : public DWIConverter
{
public:
NRRDDWIConverter( const DWIConverter::FileNamesContainer & inputFileNames );
~NRRDDWIConverter() override {}
void
AddFlagsToDictionary() override;
/**
* @brief FSL datasets are always in normal sequential volume arrangement.
*/
void
LoadFromDisk() override;
/**
* @brief find the bvalues and gradient vectors
*/
void
ExtractDWIData() override;
/**
* @brief Return common fields. Does nothing for FSL
* @return empty map
*/
CommonDicomFieldMapType
GetCommonDicomFieldsMap() const override;
private:
Volume4DType::Pointer
CreateVolume( VectorVolumeType::Pointer & inputVol );
std::string m_inputBValues;
std::string m_inputBVectors;
};
#endif // BRAINSTOOLS_NRRDDWICONVERTER_H