VTK
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 
29 
30 #include "vtkImagingMorphologicalModule.h" // For export macro
32 
34 
35 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageDilateErode3D : public vtkImageSpatialAlgorithm
36 {
37 public:
39 
43  static vtkImageDilateErode3D *New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52  void SetKernelSize(int size0, int size1, int size2);
53 
54 
56 
59  vtkSetMacro(DilateValue, double);
60  vtkGetMacro(DilateValue, double);
61  vtkSetMacro(ErodeValue, double);
62  vtkGetMacro(ErodeValue, double);
64 
65 protected:
67  ~vtkImageDilateErode3D() override;
68 
70  double DilateValue;
71  double ErodeValue;
72 
73  void ThreadedRequestData(vtkInformation *request,
74  vtkInformationVector **inputVector,
75  vtkInformationVector *outputVector,
76  vtkImageData ***inData, vtkImageData **outData,
77  int extent[6], int id) override;
78  int RequestData(vtkInformation *request,
79  vtkInformationVector **inputVector,
80  vtkInformationVector *outputVector) override;
81 
82 private:
84  void operator=(const vtkImageDilateErode3D&) = delete;
85 };
86 
87 #endif
vtkThreadedImageAlgorithm::ThreadedRequestData
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,...
vtkImageSpatialAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageSpatialAlgorithm::New
static vtkImageSpatialAlgorithm * New()
vtkImageSpatialAlgorithm.h
vtkImageDilateErode3D::Ellipse
vtkImageEllipsoidSource * Ellipse
Definition: vtkImageDilateErode3D.h:69
vtkImageDilateErode3D::ErodeValue
double ErodeValue
Definition: vtkImageDilateErode3D.h:71
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkImageDilateErode3D::DilateValue
double DilateValue
Definition: vtkImageDilateErode3D.h:70
vtkX3D::extent
Definition: vtkX3D.h:345
vtkImageEllipsoidSource
Create a binary image of an ellipsoid.
Definition: vtkImageEllipsoidSource.h:33
vtkImageSpatialAlgorithm
Filters that operate on pixel neighborhoods.
Definition: vtkImageSpatialAlgorithm.h:34
vtkThreadedImageAlgorithm::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkImageDilateErode3D
Dilates one value and erodes another.
Definition: vtkImageDilateErode3D.h:35