VTK  9.1.0
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
54class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
55{
56public:
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
107protected:
109 ~vtkImageEuclideanDistance() override = default;
110
115
116 // Replaces "EnlargeOutputUpdateExtent"
117 virtual void AllocateOutputScalars(vtkImageData* outData, int outExt[6], vtkInformation* outInfo);
118
121
122private:
124 void operator=(const vtkImageEuclideanDistance&) = delete;
125};
126
127#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
Filters that execute axes in series.
static vtkImageEuclideanDistance * New()
virtual void AllocateOutputScalars(vtkImageData *outData, int outExt[6], vtkInformation *outInfo)
void SetAlgorithmToSaitoCached()
Selects a Euclidean DT algorithm.
~vtkImageEuclideanDistance() override=default
int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out) override
void SetAlgorithmToSaito()
Selects a Euclidean DT algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
int IterativeRequestInformation(vtkInformation *in, vtkInformation *out) override
int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_EDT_SAITO
#define VTK_EDT_SAITO_CACHED