Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTbssImage.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 
18 #ifndef __mitkTbssImage__h
19 #define __mitkTbssImage__h
20 
21 #include "mitkImage.h"
22 #include "itkVectorImage.h"
23 #include "mitkImageCast.h"
24 #include "MitkQuantificationExports.h"
25 
26 namespace mitk
27 {
28 
34  class MITKQUANTIFICATION_EXPORT TbssImage : public Image
35  {
36 
37  public:
38 
39  typedef itk::VectorImage<float, 3> ImageType;
40 
41 
43  //typedef typename std::vector <Index<3> > RoiType;
44 
46  itkFactorylessNewMacro(Self)
47  itkCloneMacro(Self)
48 
49 
50  ImageType::Pointer GetImage()
51  {
52  return m_Image;
53  }
55  {
56  this->m_Image = image;
57  }
58 
59 
61  {
62  MITK_INFO << "make an mitk image that can be shown by mitk";
63  this->InitializeByItk(m_Image.GetPointer(),1,1);
64  }
65 
66  void SetGroupInfo( std::vector< std::pair<std::string, int> > info)
67  {
68  m_GroupInfo = info;
69  }
70 
71  std::vector< std::pair<std::string, int> > GetGroupInfo()
72  {
73  return m_GroupInfo;
74  }
75 
76 
77  void SetMeasurementInfo(std::string s)
78  {
79  m_MeasurementInfo = s;
80  }
81 
82  std::string GetMeasurementInfo()
83  {
84  return m_MeasurementInfo;
85  }
86 
87  void InitializeFromVectorImage();
88 
89  void SetDisplayIndexForRendering(int displayIndex);
90 
91 
92 
93 
94 
95  protected:
96 
97  TbssImage();
98 
99  virtual ~TbssImage(){}
100 
102 
103 
104  std::vector< std::pair<std::string, int> > m_GroupInfo;
105 
107 
108  std::string m_MeasurementInfo;
109 
110 
111 
112  };
113 
114 
115 } // namespace mitk
116 //#include "mitkTbssImage.cpp"
117 #endif /* __mitkTbssImage__h */
std::string m_MeasurementInfo
itk::SmartPointer< Self > Pointer
#define MITK_INFO
Definition: mitkLogMacros.h:22
Base of all data objects.
Definition: mitkBaseData.h:39
itk::Index< 3 > IndexType
Definition: mitkTbssImage.h:42
std::vector< std::pair< std::string, int > > m_GroupInfo
void SetGroupInfo(std::vector< std::pair< std::string, int > > info)
Definition: mitkTbssImage.h:66
DataCollection - Class to facilitate loading/accessing structured data.
void InitializeFromImage()
Definition: mitkTbssImage.h:60
static void info(const char *fmt,...)
Definition: svm.cpp:100
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
std::string GetMeasurementInfo()
Definition: mitkTbssImage.h:82
itk::VectorImage< float, 3 > ImageType
Definition: mitkTbssImage.h:39
void SetImage(ImageType::Pointer image)
Definition: mitkTbssImage.h:54
this class encapsulates diffusion volumes (vectorimages not yet supported by mitkImage) ...
Definition: mitkTbssImage.h:34
virtual ~TbssImage()
Definition: mitkTbssImage.h:99
std::vector< std::pair< std::string, int > > GetGroupInfo()
Definition: mitkTbssImage.h:71
void SetMeasurementInfo(std::string s)
Definition: mitkTbssImage.h:77
ImageType::Pointer m_Image