Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageEuclideanDistance.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageEuclideanDistance.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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   // Replaces "EnlargeOutputUpdateExtent"
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&);  // Not implemented.
00141   void operator=(const vtkImageEuclideanDistance&);  // Not implemented.
00142 };
00143 
00144 #endif
00145 
00146 
00147 
00148 
00149 
00150 
00151 
00152 
00153 
00154