Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkFiberBuilder.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 #ifndef _BUILDFIBRES
17 #define _BUILDFIBRES
18 
19 // MITK
20 #include <MitkFiberTrackingExports.h>
21 #include <mitkParticleGrid.h>
22 
23 // VTK
24 #include <vtkSmartPointer.h>
25 #include <vtkPolyData.h>
26 #include <vtkCellArray.h>
27 #include <vtkPoints.h>
28 #include <vtkPolyLine.h>
29 #include <vtkCleanPolyData.h>
30 
31 #include <itkImage.h>
32 
33 using namespace std;
34 
35 namespace mitk
36 {
37 
41 class MITKFIBERTRACKING_EXPORT FiberBuilder
42 {
43 public:
44 
45  typedef itk::Image<float, 3> ItkFloatImageType;
46 
47  FiberBuilder(ParticleGrid* grid, ItkFloatImageType* image);
48  ~FiberBuilder();
49 
50  vtkSmartPointer<vtkPolyData> iterate(int minFiberLength);
51 
52 protected:
53 
54  void AddPoint(Particle *dp, vtkSmartPointer<vtkPolyLine> container);
55 
56  void LabelPredecessors(Particle* p, int ep, vtkPolyLine* container);
57  void LabelSuccessors(Particle* p, int ep, vtkPolyLine* container);
58 
59  itk::Point<float> m_LastPoint;
63  vtkSmartPointer<vtkCellArray> m_VtkCellArray;
64  vtkSmartPointer<vtkPoints> m_VtkPoints;
65 
66 };
67 
68 }
69 
70 #endif
vtkSmartPointer< vtkCellArray > m_VtkCellArray
A particle is the basic element of the Gibbs fiber tractography method.
Definition: mitkParticle.h:30
itk::SmartPointer< Self > Pointer
Contains and manages particles.
ItkFloatImageType::Pointer m_Image
vtkSmartPointer< vtkPoints > m_VtkPoints
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
itk::Point< float > m_LastPoint
Gnerates actual fiber structure (vtkPolyData) from the particle grid content.
itk::Image< float, 3 > ItkFloatImageType
ParticleGrid * m_Grid