VTK  9.1.0
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=========================================================================*/
55#ifndef vtkImageDilateErode3D_h
56#define vtkImageDilateErode3D_h
57
59#include "vtkImagingMorphologicalModule.h" // For export macro
60
62
63class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageDilateErode3D : public vtkImageSpatialAlgorithm
64{
65public:
67
73 void PrintSelf(ostream& os, vtkIndent indent) override;
75
80 void SetKernelSize(int size0, int size1, int size2);
81
83
86 vtkSetMacro(DilateValue, double);
87 vtkGetMacro(DilateValue, double);
88 vtkSetMacro(ErodeValue, double);
89 vtkGetMacro(ErodeValue, double);
91
92protected:
95
98 double ErodeValue;
99
101 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
102 int outExt[6], int id) override;
104 vtkInformationVector* outputVector) override;
105
106private:
108 void operator=(const vtkImageDilateErode3D&) = delete;
109};
110
111#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.