Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNrrdTensorImageReader.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef __mitkNrrdTensorImageReader_h
18 #define __mitkNrrdTensorImageReader_h
19 
20 #include "mitkCommon.h"
21 #include "itkVectorContainer.h"
22 #include "vnl/vnl_vector_fixed.h"
23 #include "mitkTensorImage.h"
24 #include "itkVectorImage.h"
25 #include "itkDiffusionTensor3D.h"
26 #include <mitkAbstractFileReader.h>
27 #include <mitkBaseData.h>
28 #include <mitkMimeType.h>
29 
30 namespace mitk
31 {
32 
37  {
38  public:
39 
41  typedef itk::Matrix< float, 3, 3 > MeasurementFrameType;
42 
45  virtual ~NrrdTensorImageReader();
46 
48  virtual std::vector<itk::SmartPointer<BaseData> > Read() override;
49 
50  protected:
51 
52 
53  private:
54  NrrdTensorImageReader* Clone() const override;
55 
57 
58  itk::DiffusionTensor3D<float> ConvertMatrixTypeToFixedArrayType(const itk::DiffusionTensor3D<float>::Superclass::MatrixType & matrix);
59  };
60 
61 } //namespace MITK
62 
63 #endif // __mitkNrrdTensorImageReader_h
virtual std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
DataCollection - Class to facilitate loading/accessing structured data.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
itk::Matrix< float, 3, 3 > MeasurementFrameType
Base class for creating mitk::BaseData objects from files or streams.
this class encapsulates tensor images