7 #ifndef Tomato_OxOriginalShmolliDicomReader_H 8 #define Tomato_OxOriginalShmolliDicomReader_H 10 #include "CmakeConfigForTomato.h" 11 #include "tomatolib_export.h" 15 #include "itkReadFileListFilter.h" 16 #include "itkSortInvTimesImageFilter.h" 17 #include "itkExtractImageFilter.h" 25 template<
typename MeasureType >
26 class OriginalShmolliDicomReader {
30 typedef MeasureType InputPixelType;
31 typedef MeasureType OutputPixelType;
34 typedef itk::Image<InputPixelType, 3> Image3dType;
35 typedef itk::Image<OutputPixelType, 2> Image2dType;
36 typedef itk::ReadFileListFilter<Image3dType> ReadFileListFilterType;
37 typedef itk::SortInvTimesImageFilter<Image3dType, Image3dType> SortInvTimesImageFilterType;
40 InputPixelType *_invTimes;
41 InputPixelType *_echoTimes;
43 typename Image3dType::Pointer _imageMag;
44 typename Image3dType::Pointer _imagePha;
45 typename Image2dType::Pointer _imageT1grey;
46 typename Image2dType::Pointer _imageT1color;
47 typename Image2dType::Pointer _imageR2;
48 typename Image2dType::Pointer _imageA;
49 typename Image2dType::Pointer _imageB;
50 typename Image2dType::Pointer _imageT1star;
51 typename Image2dType::Pointer _imageNShmolliSamplesUsed;
52 typename Image2dType::Pointer _imageChiSqrt;
53 typename Image2dType::Pointer _imageSnr;
55 std::vector<std::string> _filesMag;
56 std::vector<std::string> _filesPha;
57 std::vector<std::string> _filesT1;
58 std::vector<std::string> _filesFitparams;
66 int copyFromImage(MeasureType* array,
const typename Image3dType::Pointer image,
const typename Image3dType::IndexType index);
72 OriginalShmolliDicomReader(){
83 _imageNShmolliSamplesUsed = 0;
92 virtual ~OriginalShmolliDicomReader(){
99 #ifndef TOMATOLIB_COMPILED 101 #endif //TOMATOLIB_COMPILED 105 #endif //Tomato_OxOriginalShmolliDicomReader_H
Definition: OxCalculator.h:19