Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkFiberCurvatureFilter.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 itkFiberCurvatureFilter_h
17 #define itkFiberCurvatureFilter_h
18 
19 // MITK
20 #include <mitkPlanarEllipse.h>
21 #include <mitkFiberBundle.h>
22 #include <mitkFiberfoxParameters.h>
23 
24 // ITK
25 #include <itkProcessObject.h>
26 
27 // VTK
28 #include <vtkSmartPointer.h>
29 #include <vtkPolyData.h>
30 #include <vtkCellArray.h>
31 #include <vtkPoints.h>
32 #include <vtkPolyLine.h>
33 
34 using namespace std;
35 
36 namespace itk{
37 
41 class FiberCurvatureFilter : public ProcessObject
42 {
43 public:
44 
46  typedef ProcessObject Superclass;
49 
50  itkFactorylessNewMacro(Self)
51  itkCloneMacro(Self)
52  itkTypeMacro( FiberCurvatureFilter, ProcessObject )
53 
54  virtual void Update() override{
55  this->GenerateData();
56  }
57 
58  itkSetMacro( Distance, double )
59  itkSetMacro( AngularDeviation, double )
60  itkSetMacro( RemoveFibers, bool )
61  itkSetMacro( InputFiberBundle, FiberBundle::Pointer )
62  itkGetMacro( OutputFiberBundle, FiberBundle::Pointer )
63 
64 protected:
65 
66  void GenerateData() override;
67 
69  virtual ~FiberCurvatureFilter();
70 
71  FiberBundle::Pointer m_InputFiberBundle;
72  FiberBundle::Pointer m_OutputFiberBundle;
73  double m_AngularDeviation;
74  double m_Distance;
75  bool m_RemoveFibers;
76 };
77 }
78 
79 #ifndef ITK_MANUAL_INSTANTIATION
81 #endif
82 
83 #endif
SmartPointer< const Self > ConstPointer
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
STL namespace.
Base Class for Fiber Bundles;.
Generates artificial fibers distributed in and interpolated between the input planar figures...