VTK  9.2.6
vtkImageDilateErode3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageDilateErode3D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkImageDilateErode3D_h
36 #define vtkImageDilateErode3D_h
37 
39 #include "vtkImagingMorphologicalModule.h" // For export macro
40 
42 
43 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageDilateErode3D : public vtkImageSpatialAlgorithm
44 {
45 public:
47 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
60  void SetKernelSize(int size0, int size1, int size2);
61 
63 
66  vtkSetMacro(DilateValue, double);
67  vtkGetMacro(DilateValue, double);
68  vtkSetMacro(ErodeValue, double);
69  vtkGetMacro(ErodeValue, double);
71 
72 protected:
75 
77  double DilateValue;
78  double ErodeValue;
79 
81  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
82  int outExt[6], int id) override;
83  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector) override;
85 
86 private:
88  void operator=(const vtkImageDilateErode3D&) = delete;
89 };
90 
91 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:63
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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.