VMTK
Loading...
Searching...
No Matches
Segmentation
vtkvmtkGrayscaleMorphologyImageFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: 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
38
class
VTK_VMTK_SEGMENTATION_EXPORT
vtkvmtkGrayscaleMorphologyImageFilter
:
public
vtkSimpleImageToImageFilter
39
{
40
public
:
41
static
vtkvmtkGrayscaleMorphologyImageFilter
*
New
();
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
65
void
SetOperationToDilate
()
66
{ this->
SetOperation
(
DILATE
); }
67
70
void
SetOperationToErode
()
71
{ this->
SetOperation
(
ERODE
); }
72
75
void
SetOperationToClose
()
76
{ this->
SetOperation
(
CLOSE
); }
77
80
void
SetOperationToOpen
()
81
{ this->
SetOperation
(
OPEN
); }
82
86
enum
87
{
88
DILATE
,
89
ERODE
,
90
CLOSE
,
91
OPEN
92
};
93
94
protected
:
95
vtkvmtkGrayscaleMorphologyImageFilter
();
96
~vtkvmtkGrayscaleMorphologyImageFilter
();
97
98
virtual
void
SimpleExecute(vtkImageData* input, vtkImageData* output)
override
;
99
virtual
int
RequestInformation(vtkInformation * vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector)
override
;
100
101
int
BallRadius
[3];
102
int
Operation
;
103
104
private
:
105
vtkvmtkGrayscaleMorphologyImageFilter
(
const
vtkvmtkGrayscaleMorphologyImageFilter
&);
// Not implemented.
106
void
operator=(
const
vtkvmtkGrayscaleMorphologyImageFilter
&);
// Not implemented.
107
};
108
109
#endif
110
111
112
113
vtkvmtkGrayscaleMorphologyImageFilter
Wraps itk::GrayscaleMorphologyImageFilter.
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:39
vtkvmtkGrayscaleMorphologyImageFilter::New
static vtkvmtkGrayscaleMorphologyImageFilter * New()
vtkvmtkGrayscaleMorphologyImageFilter::SetOperationToOpen
void SetOperationToOpen()
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:80
vtkvmtkGrayscaleMorphologyImageFilter::Operation
int Operation
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:102
vtkvmtkGrayscaleMorphologyImageFilter::vtkvmtkGrayscaleMorphologyImageFilter
vtkvmtkGrayscaleMorphologyImageFilter()
Definition
vtkvmtkGrayscaleMorphologyImageFilter.cxx:43
vtkvmtkGrayscaleMorphologyImageFilter::SetOperationToErode
void SetOperationToErode()
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:70
vtkvmtkGrayscaleMorphologyImageFilter::SetOperation
virtual void SetOperation(int)
vtkvmtkGrayscaleMorphologyImageFilter::BallRadius
int BallRadius[3]
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:101
vtkvmtkGrayscaleMorphologyImageFilter::SetOperationToDilate
void SetOperationToDilate()
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:65
vtkvmtkGrayscaleMorphologyImageFilter::SetOperationToClose
void SetOperationToClose()
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:75
vtkvmtkGrayscaleMorphologyImageFilter::OPEN
@ OPEN
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:91
vtkvmtkGrayscaleMorphologyImageFilter::DILATE
@ DILATE
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:88
vtkvmtkGrayscaleMorphologyImageFilter::CLOSE
@ CLOSE
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:90
vtkvmtkGrayscaleMorphologyImageFilter::ERODE
@ ERODE
Definition
vtkvmtkGrayscaleMorphologyImageFilter.h:89
Generated by
1.15.0