VMTK
Loading...
Searching...
No Matches
vtkvmtkGrayscaleMorphologyImageFilter.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
31
32#ifndef __vtkvmtkGrayscaleMorphologyImageFilter_h
33#define __vtkvmtkGrayscaleMorphologyImageFilter_h
34
35#include "vtkSimpleImageToImageFilter.h"
36#include "vtkvmtkWin32Header.h"
37
38class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkGrayscaleMorphologyImageFilter : public vtkSimpleImageToImageFilter
39{
40 public:
42 vtkTypeMacro(vtkvmtkGrayscaleMorphologyImageFilter, vtkSimpleImageToImageFilter);
43
45
49 vtkGetVectorMacro(BallRadius,int,3);
50 vtkSetVectorMacro(BallRadius,int,3);
52
54
59 vtkSetMacro(Operation,int);
60 vtkGetMacro(Operation,int);
62
67
71 { this->SetOperation(ERODE); }
72
76 { this->SetOperation(CLOSE); }
77
81 { this->SetOperation(OPEN); }
82
86 enum
87 {
92 };
93
94protected:
97
98 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
99 virtual int RequestInformation(vtkInformation * vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
100
103
104private:
106 void operator=(const vtkvmtkGrayscaleMorphologyImageFilter&); // Not implemented.
107};
108
109#endif
110
111
112
113
Wraps itk::GrayscaleMorphologyImageFilter.
static vtkvmtkGrayscaleMorphologyImageFilter * New()