00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkVectorGradientAnisotropicDiffusionImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:59 $ 00007 Version: $Revision: 1.20 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkVectorGradientAnisotropicDiffusionImageFilter_h_ 00018 #define __itkVectorGradientAnisotropicDiffusionImageFilter_h_ 00019 00020 #include "itkExceptionObject.h" 00021 #include "itkAnisotropicDiffusionImageFilter.h" 00022 #include "itkVectorGradientNDAnisotropicDiffusionFunction.h" 00023 00024 namespace itk { 00025 00054 template <class TInputImage, class TOutputImage> 00055 class ITK_EXPORT VectorGradientAnisotropicDiffusionImageFilter 00056 : public AnisotropicDiffusionImageFilter<TInputImage, TOutputImage> 00057 { 00058 public: 00060 typedef VectorGradientAnisotropicDiffusionImageFilter Self; 00061 typedef AnisotropicDiffusionImageFilter<TInputImage, TOutputImage> 00062 Superclass; 00063 typedef SmartPointer<Self> Pointer; 00064 typedef SmartPointer<const Self> ConstPointer; 00065 00067 itkNewMacro(Self); 00068 00070 itkTypeMacro(VectorGradientAnisotropicDiffusionImageFilter, 00071 AnisotropicDiffusionImageFilter); 00072 00074 typedef typename Superclass::UpdateBufferType UpdateBufferType; 00075 00077 itkStaticConstMacro(ImageDimension, unsigned int, 00078 Superclass::ImageDimension ); 00079 00080 protected: 00081 VectorGradientAnisotropicDiffusionImageFilter() 00082 { 00083 typename VectorGradientNDAnisotropicDiffusionFunction<UpdateBufferType>::Pointer p 00084 = VectorGradientNDAnisotropicDiffusionFunction<UpdateBufferType>::New(); 00085 this->SetDifferenceFunction(p); 00086 } 00087 ~VectorGradientAnisotropicDiffusionImageFilter() {} 00088 00089 private: 00090 VectorGradientAnisotropicDiffusionImageFilter(const Self&); //purposely not implemented 00091 void operator=(const Self&); //purposely not implemented 00092 }; 00093 00094 } // end namspace itk 00095 00096 #endif