ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkVectorGradientAnisotropicDiffusionImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkVectorGradientAnisotropicDiffusionImageFilter_h
00019 #define __itkVectorGradientAnisotropicDiffusionImageFilter_h
00020 
00021 #include "itkMacro.h"
00022 #include "itkAnisotropicDiffusionImageFilter.h"
00023 #include "itkVectorGradientNDAnisotropicDiffusionFunction.h"
00024 
00025 namespace itk
00026 {
00060 template< class TInputImage, class TOutputImage >
00061 class ITK_EXPORT VectorGradientAnisotropicDiffusionImageFilter:
00062   public AnisotropicDiffusionImageFilter< TInputImage, TOutputImage >
00063 {
00064 public:
00066   typedef VectorGradientAnisotropicDiffusionImageFilter Self;
00067   typedef AnisotropicDiffusionImageFilter< TInputImage, TOutputImage >
00068   Superclass;
00069   typedef SmartPointer< Self >       Pointer;
00070   typedef SmartPointer< const Self > ConstPointer;
00071 
00073   itkNewMacro(Self);
00074 
00076   itkTypeMacro(VectorGradientAnisotropicDiffusionImageFilter,
00077                AnisotropicDiffusionImageFilter);
00078 
00080   typedef typename Superclass::UpdateBufferType UpdateBufferType;
00081 
00083   itkStaticConstMacro(ImageDimension, unsigned int,
00084                       Superclass::ImageDimension);
00085 
00086 #ifdef ITK_USE_CONCEPT_CHECKING
00087 
00088   itkConceptMacro( InputHasNumericTraitsCheck,
00089                    ( Concept::HasNumericTraits< typename TInputImage::PixelType::ValueType > ) );
00090   itkConceptMacro( OutputHasNumericTraitsCheck,
00091                    ( Concept::HasNumericTraits< typename TOutputImage::PixelType::ValueType > ) );
00092 
00094 #endif
00095 protected:
00096   VectorGradientAnisotropicDiffusionImageFilter()
00097   {
00098     typename VectorGradientNDAnisotropicDiffusionFunction< UpdateBufferType >::Pointer p =
00099       VectorGradientNDAnisotropicDiffusionFunction< UpdateBufferType >::New();
00100     this->SetDifferenceFunction(p);
00101   }
00103 
00104   ~VectorGradientAnisotropicDiffusionImageFilter() {}
00105 private:
00106   VectorGradientAnisotropicDiffusionImageFilter(const Self &); //purposely not
00107                                                                // implemented
00108   void operator=(const Self &);                                //purposely not
00109 
00110   // implemented
00111 };
00112 } // end namspace itk
00113 
00114 #endif
00115