18 #ifndef __itkDWIReader_h 19 #define __itkDWIReader_h 22 #include "itkVectorImage.h" 23 #include "itkImageSource.h" 58 template <
class TPixelType,
unsigned int VImageDimension = 3 >
59 class ITK_EXPORT
DWIReader :
public ImageSource< VectorImage<TPixelType, VImageDimension> >
65 typedef ImageSource< VectorImage<TPixelType, VImageDimension> >
Superclass;
74 typedef Image<TPixelType, VImageDimension>
B0ImageType;
83 typedef typename DWIImageType::SizeType
SizeType;
101 itkSetObjectMacro(MaskImage, MaskImageType);
102 itkGetConstObjectMacro(MaskImage, MaskImageType);
105 itkSetObjectMacro(B0Image, B0ImageType);
106 itkGetObjectMacro(B0Image, B0ImageType);
116 itkSetMacro(ConfigurationFile, std::string);
117 itkGetMacro(ConfigurationFile, std::string);
120 itkSetMacro(NormalizeDWI,
bool);
121 itkGetMacro(NormalizeDWI,
bool);
122 itkBooleanMacro(NormalizeDWI);
130 itkSetMacro(IsInput4DImage,
bool);
131 itkGetMacro(IsInput4DImage,
bool);
132 itkBooleanMacro(IsInput4DImage);
135 itkSetMacro(CorrectDWIValues,
bool);
136 itkGetMacro(CorrectDWIValues,
bool);
137 itkBooleanMacro(CorrectDWIValues);
140 itkSetMacro(ShowWarnings,
bool);
141 itkGetMacro(ShowWarnings,
bool);
142 itkBooleanMacro(ShowWarnings);
164 void ReadFromConfigurationFile(
const std::string& file);
168 static bool DetermineIsInput4DImage(
const std::string& dataStr);
180 void PrintSelf(std::ostream& os, Indent indent)
const ITK_OVERRIDE;
187 void operator=(
const Self &);
206 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkDWIReader_hxx) SmartPointer< Self > Pointer
B0ImageType::IndexType B0IndexType
SamplingSchemeQSpaceType::Pointer SamplingSchemeQSpacePointer
DWIImageType::SizeType SizeType
utl::NDArray< double, 2 > MatrixType
DWIImageType::SpacingType SpacingType
B0ImageType::PixelType B0PixelType
DWIImageType::PixelType PixelType
std::string m_ConfigurationFile
B0ImageType::DirectionType B0DirectionType
MaskImageType::Pointer m_MaskImage
VectorImage< TPixelType, VImageDimension > DWIImageType
DWIImageType::RegionType RegionType
Image< double, VImageDimension > MaskImageType
std::vector< double > STDVectorType
utl_shared_ptr< STDVectorType > STDVectorPointer
B0ImageType::SizeType B0SizeType
DWIImageType::DirectionType DirectionType
SamplingSchemeQSpacePointer m_SamplingSchemeQSpace
this class describes sampling in Q space.
Load gradient file, b values and DWI files (with optional index file)
Image< TPixelType, VImageDimension > B0ImageType
B0ImageType::Pointer m_B0Image
DWIImageType::IndexType IndexType
SamplingSchemeQSpace< double > SamplingSchemeQSpaceType
ImageSource< VectorImage< TPixelType, VImageDimension > > Superclass
DWIImageType::Pointer GetDWIImage()
utl_shared_ptr< MatrixType > MatrixPointer
B0ImageType::SpacingType B0SpacingType
SmartPointer< Self > Pointer
B0ImageType::RegionType B0RegionType