VMTK
vtkvmtkMedialCurveFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkMedialCurveFilter.h,v $
5 Language: C++
6 
7  Copyright (c) Richard Izzo, Luca Antiga. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  Portions of this code are covered under the ITK copyright.
15  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm
16  for details.
17 
18  This software is distributed WITHOUT ANY WARRANTY; without even
19  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20  PURPOSE. See the above copyright notices for more information.
21  Note: this class was contributed by
22  Richard Izzo
23  https://github.com/rlizzo
24 
25 =========================================================================*/
37 #ifndef __vtkvmtkMedialCurveFilter_h
38 #define __vtkvmtkMedialCurveFilter_h
39 
40 #include "vtkSimpleImageToImageFilter.h"
41 #include "vtkImageData.h"
42 #include "vtkvmtkWin32Header.h"
43 
44 class vtkImageData;
45 class itkImage;
46 
47 class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkMedialCurveFilter : public vtkSimpleImageToImageFilter
48 {
49  public:
50 
51  static vtkvmtkMedialCurveFilter *New();
52  vtkTypeMacro(vtkvmtkMedialCurveFilter, vtkSimpleImageToImageFilter);
53  // void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54 
55  vtkGetMacro(Sigma,double);
56  vtkSetMacro(Sigma,double);
57 
58  vtkGetMacro(Threshold,double);
59  vtkSetMacro(Threshold,double);
60 
61  protected:
64 
65  virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) VTK_OVERRIDE;
66 
67  double Sigma;
68  double Threshold;
69 
70  private:
71  vtkvmtkMedialCurveFilter(const vtkvmtkMedialCurveFilter&); // Not implemented.
72  void operator=(const vtkvmtkMedialCurveFilter&); // Not implemented.
73 };
74 #endif
flux driven automatic centerline extraction from a surface