VTK  9.3.0
vtkImageDilateErode3D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
23 #ifndef vtkImageDilateErode3D_h
24 #define vtkImageDilateErode3D_h
25 
27 #include "vtkImagingMorphologicalModule.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 
32 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageDilateErode3D : public vtkImageSpatialAlgorithm
33 {
34 public:
36 
42  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49  void SetKernelSize(int size0, int size1, int size2);
50 
52 
55  vtkSetMacro(DilateValue, double);
56  vtkGetMacro(DilateValue, double);
57  vtkSetMacro(ErodeValue, double);
58  vtkGetMacro(ErodeValue, double);
60 
61 protected:
64 
66  double DilateValue;
67  double ErodeValue;
68 
70  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
71  int outExt[6], int id) override;
72  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector) override;
74 
75 private:
77  void operator=(const vtkImageDilateErode3D&) = delete;
78 };
79 
80 VTK_ABI_NAMESPACE_END
81 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
Dilates one value and erodes another.
static vtkImageDilateErode3D * New()
Construct an instance of vtkImageDilateErode3D filter.
void SetKernelSize(int size0, int size1, int size2)
This method sets the size of the neighborhood.
~vtkImageDilateErode3D() override
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct an instance of vtkImageDilateErode3D filter.
vtkImageEllipsoidSource * Ellipse
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
Create a binary image of an ellipsoid.
Filters that operate on pixel neighborhoods.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.