Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTractAnalyzer.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 __mitkTractAnalyzer_h_
19 #define __mitkTractAnalyzer_h_
20 
21 #include "MitkQuantificationExports.h"
22 #include <itkImage.h>
23 #include "mitkImage.h"
24 #include "mitkImageCast.h"
25 
26 #include <mitkTbssRoiImage.h>
27 #include <mitkPointSet.h>
28 
29 
30 namespace mitk{
42 class MITKQUANTIFICATION_EXPORT TractAnalyzer
43 {
44 
45 public:
46 
47 
48  TractAnalyzer();
50 
51 
53  typedef itk::Image<unsigned char,3> CharImageType;
54  typedef itk::Image<float,3> FloatImageType;
55 
56 
62  void MakeRoi();
63 
64 
65 
68  {
69  return m_TbssRoi;
70  }
71 
72 
79  {
80  m_InputImage = inputImage;
81  }
82 
83 
89  {
90  m_PointSetNode = pointSet;
91  }
92 
93 
99  void SetThreshold(double threshold)
100  {
101  m_Threshold = threshold;
102  }
103 
104 
105 
111  std::string GetPathDescription()
112  {
113  return m_PathDescription;
114  }
115 
116  itkGetMacro(CostSum, double)
117 
118 protected:
119 
120 
121 
127  std::vector< itk::Index<3> > CreateSegment(itk::Index<3> startPoint, itk::Index<3> endPoint);
128 
129 
131  mitk::TbssRoiImage::Pointer m_TbssRoi;
132 
134  mitk::Image::Pointer m_InputImage;
135 
137  double m_Threshold;
138 
140  mitk::PointSet::Pointer m_PointSetNode;
141 
143  std::string m_PathDescription;
144 
146  double m_CostSum;
147 
148 
149 private:
150 
151 };
152 
153 }
154 
155 #endif //__itkTractAnalyzer_h_
void SetPointSet(mitk::PointSet::Pointer pointSet)
Sets the user-defined point set.
std::string GetPathDescription()
Returns a string with the indices of points on the region of interest.
this class encapsulates diffusion volumes (vectorimages not yet supported by mitkImage) ...
itk::Image< float, 3 > FloatImageType
STL namespace.
void SetInputImage(mitk::Image::Pointer inputImage)
Sets the input image.
DataCollection - Class to facilitate loading/accessing structured data.
itk::Image< unsigned char, 3 > CharImageType
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
Image class for storing images.
Definition: mitkImage.h:76
Creates a region of interest for tract-specific analysis of existing TBSS data.
mitk::TbssRoiImage::Pointer GetRoiImage()
Returns the TbssRoiImage.
void SetThreshold(double threshold)
Sets a lower bound for the threshold.