VTK
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 =========================================================================*/
48 #ifndef vtkImageEuclideanDistance_h
49 #define vtkImageEuclideanDistance_h
50 
52 #include "vtkImagingGeneralModule.h" // For export macro
53 
54 #define VTK_EDT_SAITO_CACHED 0
55 #define VTK_EDT_SAITO 1
56 
57 class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
71  vtkSetMacro(Initialize, vtkTypeBool);
72  vtkGetMacro(Initialize, vtkTypeBool);
73  vtkBooleanMacro(Initialize, vtkTypeBool);
75 
77 
81  vtkSetMacro(ConsiderAnisotropy, vtkTypeBool);
82  vtkGetMacro(ConsiderAnisotropy, vtkTypeBool);
83  vtkBooleanMacro(ConsiderAnisotropy, vtkTypeBool);
85 
87 
91  vtkSetMacro(MaximumDistance, double);
92  vtkGetMacro(MaximumDistance, double);
94 
96 
102  vtkSetMacro(Algorithm, int);
103  vtkGetMacro(Algorithm, int);
105  { this->SetAlgorithm(VTK_EDT_SAITO); }
107  { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
109 
112  vtkInformationVector*) override;
113 
114 protected:
117 
122 
123  // Replaces "EnlargeOutputUpdateExtent"
124  virtual void AllocateOutputScalars(vtkImageData *outData,
125  int outExt[6],
126  vtkInformation* outInfo);
127 
129  vtkInformation* out) override;
131  vtkInformation* out) override;
132 
133 private:
135  void operator=(const vtkImageEuclideanDistance&) = delete;
136 };
137 
138 #endif
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
vtkImageEuclideanDistance::Initialize
vtkTypeBool Initialize
Definition: vtkImageEuclideanDistance.h:119
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageEuclideanDistance::Algorithm
int Algorithm
Definition: vtkImageEuclideanDistance.h:121
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::~vtkImageEuclideanDistance
~vtkImageEuclideanDistance() override
Definition: vtkImageEuclideanDistance.h:116
vtkImageEuclideanDistance
computes 3D Euclidean DT
Definition: vtkImageEuclideanDistance.h:57
vtkImageEuclideanDistance::SetAlgorithmToSaito
void SetAlgorithmToSaito()
Definition: vtkImageEuclideanDistance.h:104
vtkImageEuclideanDistance::ConsiderAnisotropy
vtkTypeBool ConsiderAnisotropy
Definition: vtkImageEuclideanDistance.h:120
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:47
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_EDT_SAITO
#define VTK_EDT_SAITO
Definition: vtkImageEuclideanDistance.h:55
vtkImageDecomposeFilter
Filters that execute axes in series.
Definition: vtkImageDecomposeFilter.h:33
vtkImageEuclideanDistance::SetAlgorithmToSaitoCached
void SetAlgorithmToSaitoCached()
Definition: vtkImageEuclideanDistance.h:106
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:70
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageIterateFilter::IterativeRequestInformation
virtual int IterativeRequestInformation(vtkInformation *in, vtkInformation *out)
vtkImageEuclideanDistance::MaximumDistance
double MaximumDistance
Definition: vtkImageEuclideanDistance.h:118
vtkImageIterateFilter::IterativeRequestData
virtual int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_EDT_SAITO_CACHED
#define VTK_EDT_SAITO_CACHED
Definition: vtkImageEuclideanDistance.h:54
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkImageDecomposeFilter.h