Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkITKMorphologicalContourInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8 ==========================================================================*/
9 
10 #ifndef __vtkITKMorphologicalContourInterpolator_h
11 #define __vtkITKMorphologicalContourInterpolator_h
12 
13 #include "vtkITK.h"
14 #include "vtkSimpleImageToImageFilter.h"
15 
17 class VTK_ITK_EXPORT vtkITKMorphologicalContourInterpolator : public vtkSimpleImageToImageFilter
18 {
19 public:
21  vtkTypeMacro(vtkITKMorphologicalContourInterpolator, vtkSimpleImageToImageFilter);
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
25  vtkGetMacro(Label, long);
26  vtkSetMacro(Label, long);
27 
29  vtkGetMacro(Axis, int);
30  vtkSetMacro(Axis, int);
31 
34  vtkGetMacro(HeuristicAlignment, bool);
35  vtkSetMacro(HeuristicAlignment, bool);
36 
40  vtkGetMacro(UseDistanceTransform, bool);
41  vtkSetMacro(UseDistanceTransform, bool);
42 
44  vtkGetMacro(UseBallStructuringElement, bool);
45  vtkSetMacro(UseBallStructuringElement, bool);
46 
47 protected:
50 
51  void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
52 
53  long Label{0};
54  int Axis{-1};
55  bool HeuristicAlignment{true};
56  bool UseDistanceTransform{false};
57  bool UseBallStructuringElement{false};
58 
59 private:
61  void operator=(const vtkITKMorphologicalContourInterpolator&) = delete;
62 };
63 
64 #endif
Wrapper class around itk::MorphologicalContourInterpolator.