VMTK
Loading...
Searching...
No Matches
vtkvmtkCollidingFrontsImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 Portions of this code are covered under the ITK copyright.
13 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19
20=========================================================================*/
21
37
38#ifndef __vtkvmtkCollidingFrontsImageFilter_h
39#define __vtkvmtkCollidingFrontsImageFilter_h
40
41#include "vtkSimpleImageToImageFilter.h"
42#include "vtkIdList.h"
43#include "vtkvmtkWin32Header.h"
44
45class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkCollidingFrontsImageFilter : public vtkSimpleImageToImageFilter
46{
47 public:
49 vtkTypeMacro(vtkvmtkCollidingFrontsImageFilter, vtkSimpleImageToImageFilter);
50
52
56 vtkGetMacro(ApplyConnectivity,int);
57 vtkSetMacro(ApplyConnectivity,int);
58 vtkBooleanMacro(ApplyConnectivity,int);
60
62
68 vtkGetMacro(NegativeEpsilon,double);
69 vtkSetMacro(NegativeEpsilon,double);
71
73
78 vtkGetMacro(StopOnTargets,int);
79 vtkSetMacro(StopOnTargets,int);
80 vtkBooleanMacro(StopOnTargets,int);
82
84
88 vtkSetObjectMacro(Seeds1,vtkIdList);
89 vtkGetObjectMacro(Seeds1,vtkIdList);
91
93
97 vtkSetObjectMacro(Seeds2,vtkIdList);
98 vtkGetObjectMacro(Seeds2,vtkIdList);
100
101protected:
102
105
106 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
107
108private:
110 void operator=(const vtkvmtkCollidingFrontsImageFilter&); // Not implemented.
111
112 vtkIdList* Seeds1;
113 vtkIdList* Seeds2;
114
115 int ApplyConnectivity;
116 double NegativeEpsilon;
117 int StopOnTargets;
118};
119
120#endif
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output) override
static vtkvmtkCollidingFrontsImageFilter * New()