VTK  9.0.1
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 =========================================================================*/
26 #ifndef vtkImageDilateErode3D_h
27 #define vtkImageDilateErode3D_h
28 
30 #include "vtkImagingMorphologicalModule.h" // For export macro
31 
33 
34 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageDilateErode3D : public vtkImageSpatialAlgorithm
35 {
36 public:
38 
44  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51  void SetKernelSize(int size0, int size1, int size2);
52 
54 
57  vtkSetMacro(DilateValue, double);
58  vtkGetMacro(DilateValue, double);
59  vtkSetMacro(ErodeValue, double);
60  vtkGetMacro(ErodeValue, double);
62 
63 protected:
66 
68  double DilateValue;
69  double ErodeValue;
70 
72  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
73  int extent[6], int id) override;
74  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector) override;
76 
77 private:
79  void operator=(const vtkImageDilateErode3D&) = delete;
80 };
81 
82 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkImageDilateErode3D::~vtkImageDilateErode3D
~vtkImageDilateErode3D() override
vtkImageDilateErode3D::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkImageDilateErode3D::vtkImageDilateErode3D
vtkImageDilateErode3D()
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkImageDilateErode3D::SetKernelSize
void SetKernelSize(int size0, int size1, int size2)
This method sets the size of the neighborhood.
vtkImageSpatialAlgorithm.h
vtkImageDilateErode3D::Ellipse
vtkImageEllipsoidSource * Ellipse
Definition: vtkImageDilateErode3D.h:67
vtkImageDilateErode3D::ErodeValue
double ErodeValue
Definition: vtkImageDilateErode3D.h:69
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkImageDilateErode3D::New
static vtkImageDilateErode3D * New()
Construct an instance of vtkImageDilateErode3D filter.
vtkImageDilateErode3D::DilateValue
double DilateValue
Definition: vtkImageDilateErode3D.h:68
vtkImageDilateErode3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkImageEllipsoidSource
Create a binary image of an ellipsoid.
Definition: vtkImageEllipsoidSource.h:31
vtkImageSpatialAlgorithm
Filters that operate on pixel neighborhoods.
Definition: vtkImageSpatialAlgorithm.h:34
vtkImageDilateErode3D
Dilates one value and erodes another.
Definition: vtkImageDilateErode3D.h:35
vtkImageDilateErode3D::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...