VTK  9.3.1
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
14 #ifndef vtkImageDilateErode3D_h
15 #define vtkImageDilateErode3D_h
16 
18 #include "vtkImagingMorphologicalModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
22 
23 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageDilateErode3D : public vtkImageSpatialAlgorithm
24 {
25 public:
27 
31  static vtkImageDilateErode3D* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
40  void SetKernelSize(int size0, int size1, int size2);
41 
43 
46  vtkSetMacro(DilateValue, double);
47  vtkGetMacro(DilateValue, double);
48  vtkSetMacro(ErodeValue, double);
49  vtkGetMacro(ErodeValue, double);
51 
52 protected:
54  ~vtkImageDilateErode3D() override;
55 
57  double DilateValue;
58  double ErodeValue;
59 
60  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
61  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
62  int outExt[6], int id) override;
63  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
64  vtkInformationVector* outputVector) override;
65 
66 private:
68  void operator=(const vtkImageDilateErode3D&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif
Store vtkAlgorithm input/output information.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
Create a binary image of an ellipsoid.
vtkImageEllipsoidSource * Ellipse
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
Filters that operate on pixel neighborhoods.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageSpatialAlgorithm * New()
Dilates one value and erodes another.