Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTbssImporter.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 __mitkTbssImporter_h
18 #define __mitkTbssImporter_h
19 
20 #include "mitkCommon.h"
21 #include "mitkFileReader.h"
22 
23 #include "itkImage.h"
24 #include "itkVectorImage.h"
25 
26 #include "mitkTbssImage.h"
27 #include "MitkQuantificationExports.h"
28 
29 
30 namespace mitk
31 {
32 
40  class MITKQUANTIFICATION_EXPORT TbssImporter : public itk::Object {
41 
42  public:
43 
44  // type of the 3d vector image containing the skeletonized images
45  typedef itk::VectorImage<float,3> DataImageType;
46 
48  itkFactorylessNewMacro(Self)
49  itkCloneMacro(Self)
50 
52  mitk::TbssImage::Pointer Import();
53 
54  template <typename TPixel>
55  void Import(const mitk::PixelType pixelType, mitk::TbssImage::Pointer tbssImg);
56 
58  void SetGroupInfo(std::vector< std::pair<std::string, int> > groups)
59  {
60  m_Groups = groups;
61  }
62 
64  void SetMeasurementInfo(std::string s)
65  {
66  m_MeasurementInfo = s;
67  }
68 
71  {
72  m_InputVolume = inputVolume;
73  }
74 
75  protected:
76 
78 
79  virtual ~TbssImporter(){}
80 
82 
83  std::vector< std::pair<std::string, int> > m_Groups;
84 
85  std::string m_MeasurementInfo;
86 
88 
89  };
90 }
91 #endif // __mitkTbssImporter_h
DataImageType::Pointer m_Data
itk::SmartPointer< Self > Pointer
std::vector< std::pair< std::string, int > > m_Groups
itk::VectorImage< float, 3 > DataImageType
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
std::string m_MeasurementInfo
void SetImportVolume(mitk::Image::Pointer inputVolume)
Sets the FSL import volume.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
void SetMeasurementInfo(std::string s)
Used to indicate the type of measurement.
this class encapsulates diffusion volumes (vectorimages not yet supported by mitkImage) ...
Definition: mitkTbssImage.h:34
mitk::Image::Pointer m_InputVolume
Converts FSL TBSS data (4D skeleton projection images) to a NRRD image with meta data.
Class for defining the data type of pixels.
Definition: mitkPixelType.h:55