VTK  9.0.20200604
vtkImageEuclideanDistance.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageEuclideanDistance.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 =========================================================================*/
45 #ifndef vtkImageEuclideanDistance_h
46 #define vtkImageEuclideanDistance_h
47 
49 #include "vtkImagingGeneralModule.h" // For export macro
50 
51 #define VTK_EDT_SAITO_CACHED 0
52 #define VTK_EDT_SAITO 1
53 
54 class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
68  vtkSetMacro(Initialize, vtkTypeBool);
69  vtkGetMacro(Initialize, vtkTypeBool);
70  vtkBooleanMacro(Initialize, vtkTypeBool);
72 
74 
78  vtkSetMacro(ConsiderAnisotropy, vtkTypeBool);
79  vtkGetMacro(ConsiderAnisotropy, vtkTypeBool);
80  vtkBooleanMacro(ConsiderAnisotropy, vtkTypeBool);
82 
84 
88  vtkSetMacro(MaximumDistance, double);
89  vtkGetMacro(MaximumDistance, double);
91 
93 
99  vtkSetMacro(Algorithm, int);
100  vtkGetMacro(Algorithm, int);
101  void SetAlgorithmToSaito() { this->SetAlgorithm(VTK_EDT_SAITO); }
102  void SetAlgorithmToSaitoCached() { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
104 
106 
107 protected:
109  ~vtkImageEuclideanDistance() override = default;
110 
115 
116  // Replaces "EnlargeOutputUpdateExtent"
117  virtual void AllocateOutputScalars(vtkImageData* outData, int outExt[6], vtkInformation* outInfo);
118 
121 
122 private:
124  void operator=(const vtkImageEuclideanDistance&) = delete;
125 };
126 
127 #endif
vtkImageEuclideanDistance::Initialize
vtkTypeBool Initialize
Definition: vtkImageEuclideanDistance.h:112
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageEuclideanDistance::Algorithm
int Algorithm
Definition: vtkImageEuclideanDistance.h:114
vtkImageDecomposeFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageIterateFilter::IterativeRequestUpdateExtent
virtual int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out)
vtkImageEuclideanDistance
computes 3D Euclidean DT
Definition: vtkImageEuclideanDistance.h:54
vtkImageEuclideanDistance::SetAlgorithmToSaito
void SetAlgorithmToSaito()
Definition: vtkImageEuclideanDistance.h:101
vtkImageEuclideanDistance::ConsiderAnisotropy
vtkTypeBool ConsiderAnisotropy
Definition: vtkImageEuclideanDistance.h:113
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_EDT_SAITO
#define VTK_EDT_SAITO
Definition: vtkImageEuclideanDistance.h:52
vtkImageDecomposeFilter
Filters that execute axes in series.
Definition: vtkImageDecomposeFilter.h:32
vtkImageEuclideanDistance::SetAlgorithmToSaitoCached
void SetAlgorithmToSaitoCached()
Definition: vtkImageEuclideanDistance.h:102
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageIterateFilter::IterativeRequestInformation
virtual int IterativeRequestInformation(vtkInformation *in, vtkInformation *out)
vtkImageEuclideanDistance::MaximumDistance
double MaximumDistance
Definition: vtkImageEuclideanDistance.h:111
vtkImageIterateFilter::IterativeRequestData
virtual int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_EDT_SAITO_CACHED
#define VTK_EDT_SAITO_CACHED
Definition: vtkImageEuclideanDistance.h:51
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkImageDecomposeFilter.h