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

vtkImageAnisotropicDiffusion3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageAnisotropicDiffusion3D.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 =========================================================================*/
00043 #ifndef __vtkImageAnisotropicDiffusion3D_h
00044 #define __vtkImageAnisotropicDiffusion3D_h
00045 
00046 
00047 #include "vtkImageSpatialAlgorithm.h"
00048 
00049 class VTK_IMAGING_EXPORT vtkImageAnisotropicDiffusion3D : public vtkImageSpatialAlgorithm
00050 {
00051 public:
00052   static vtkImageAnisotropicDiffusion3D *New();
00053   vtkTypeRevisionMacro(vtkImageAnisotropicDiffusion3D,vtkImageSpatialAlgorithm);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055   
00056   
00062   void SetNumberOfIterations(int num);
00063   
00065 
00066   vtkGetMacro(NumberOfIterations,int);
00068 
00070 
00075   vtkSetMacro(DiffusionThreshold,double);
00076   vtkGetMacro(DiffusionThreshold,double);
00078   
00080 
00081   vtkSetMacro(DiffusionFactor,double);
00082   vtkGetMacro(DiffusionFactor,double);
00084 
00086 
00087   vtkSetMacro(Faces,int);
00088   vtkGetMacro(Faces,int);
00089   vtkBooleanMacro(Faces,int);
00090   vtkSetMacro(Edges,int);
00091   vtkGetMacro(Edges,int);
00092   vtkBooleanMacro(Edges,int);
00093   vtkSetMacro(Corners,int);
00094   vtkGetMacro(Corners,int);
00095   vtkBooleanMacro(Corners,int);
00097 
00099 
00101   vtkSetMacro(GradientMagnitudeThreshold,int);
00102   vtkGetMacro(GradientMagnitudeThreshold,int);
00103   vtkBooleanMacro(GradientMagnitudeThreshold,int);
00105   
00106 protected:
00107   vtkImageAnisotropicDiffusion3D();
00108   ~vtkImageAnisotropicDiffusion3D() {};
00109 
00110   int NumberOfIterations;
00111   double DiffusionThreshold;
00112   double DiffusionFactor;  
00113   // to determine which neighbors to diffuse
00114   int Faces;
00115   int Edges;
00116   int Corners;
00117   // What threshold to use
00118   int GradientMagnitudeThreshold;
00119   
00120   void ThreadedRequestData(vtkInformation *request,
00121                            vtkInformationVector **inputVector,
00122                            vtkInformationVector *outputVector,
00123                            vtkImageData ***inData, vtkImageData **outData, 
00124                            int extent[6], int id);
00125   void Iterate(vtkImageData *in, vtkImageData *out, 
00126                double ar0, double ar1, double ar3, int *coreExtent, int count);
00127 private:
00128   vtkImageAnisotropicDiffusion3D(const vtkImageAnisotropicDiffusion3D&);  // Not implemented.
00129   void operator=(const vtkImageAnisotropicDiffusion3D&);  // Not implemented.
00130 };
00131 
00132 #endif
00133 
00134 
00135 

Generated on Mon Jan 21 23:07:28 2008 for VTK by  doxygen 1.4.3-20050530