vtkImageEuclideanDistance.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00059 #ifndef __vtkImageEuclideanDistance_h
00060 #define __vtkImageEuclideanDistance_h
00061
00062 #include "vtkImageDecomposeFilter.h"
00063
00064 #define VTK_EDT_SAITO_CACHED 0
00065 #define VTK_EDT_SAITO 1
00066
00067 class VTK_IMAGING_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
00068 {
00069 public:
00070 static vtkImageEuclideanDistance *New();
00071 vtkTypeRevisionMacro(vtkImageEuclideanDistance,vtkImageDecomposeFilter);
00072 void PrintSelf(ostream& os, vtkIndent indent);
00073
00075
00081 int SplitExtent(int splitExt[6], int startExt[6],
00082 int num, int total);
00084
00086
00090 vtkSetMacro(Initialize, int);
00091 vtkGetMacro(Initialize, int);
00092 vtkBooleanMacro(Initialize, int);
00094
00096
00098 vtkSetMacro(ConsiderAnisotropy, int);
00099 vtkGetMacro(ConsiderAnisotropy, int);
00100 vtkBooleanMacro(ConsiderAnisotropy, int);
00102
00104
00106 vtkSetMacro(MaximumDistance, double);
00107 vtkGetMacro(MaximumDistance, double);
00109
00111
00113 vtkSetMacro(Algorithm, int);
00114 vtkGetMacro(Algorithm, int);
00115 void SetAlgorithmToSaito ()
00116 { this->SetAlgorithm(VTK_EDT_SAITO); }
00117 void SetAlgorithmToSaitoCached ()
00118 { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
00120
00121 void IterativeExecuteData(vtkImageData *in, vtkImageData *out);
00122
00123 protected:
00124 vtkImageEuclideanDistance();
00125 ~vtkImageEuclideanDistance() {}
00126
00127 double MaximumDistance;
00128 int Initialize;
00129 int ConsiderAnisotropy;
00130 int Algorithm;
00131
00132
00133 virtual void AllocateOutputScalars(vtkImageData *outData);
00134
00135 void ExecuteInformation(vtkImageData *input, vtkImageData *output);
00136 void ExecuteInformation()
00137 {this->vtkImageIterateFilter::ExecuteInformation();}
00138 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00139 private:
00140 vtkImageEuclideanDistance(const vtkImageEuclideanDistance&);
00141 void operator=(const vtkImageEuclideanDistance&);
00142 };
00143
00144 #endif
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154