ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkVectorAnisotropicDiffusionFunction.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 __itkVectorAnisotropicDiffusionFunction_h
00019 #define __itkVectorAnisotropicDiffusionFunction_h
00020 
00021 #include "itkAnisotropicDiffusionFunction.h"
00022 #include "itkVector.h"
00023 
00024 namespace itk
00025 {
00052 template< class TImage >
00053 class ITK_EXPORT VectorAnisotropicDiffusionFunction:
00054   public AnisotropicDiffusionFunction< TImage >
00055 {
00056 public:
00058   typedef VectorAnisotropicDiffusionFunction     Self;
00059   typedef AnisotropicDiffusionFunction< TImage > Superclass;
00060   typedef SmartPointer< Self >                   Pointer;
00061   typedef SmartPointer< const Self >             ConstPointer;
00062 
00064   itkTypeMacro(VectorAnisotropicDiffusionFunction,
00065                AnisotropicDiffusionFunction);
00066 
00068   typedef typename Superclass::ImageType        ImageType;
00069   typedef typename Superclass::PixelType        PixelType;
00070   typedef typename Superclass::TimeStepType     TimeStepType;
00071   typedef typename Superclass::RadiusType       RadiusType;
00072   typedef typename Superclass::NeighborhoodType NeighborhoodType;
00073 
00075   itkStaticConstMacro(ImageDimension, unsigned int,
00076                       Superclass::ImageDimension);
00077   itkStaticConstMacro(VectorDimension, unsigned int, PixelType::Dimension);
00079 
00081   virtual void CalculateAverageGradientMagnitudeSquared(TImage *);
00082 
00083 protected:
00084   VectorAnisotropicDiffusionFunction() {}
00085   ~VectorAnisotropicDiffusionFunction() {}
00086   void PrintSelf(std::ostream & os, Indent indent) const
00087   { Superclass::PrintSelf(os, indent); }
00088 private:
00089   VectorAnisotropicDiffusionFunction(const Self &); //purposely not implemented
00090   void operator=(const Self &);                     //purposely not implemented
00091 };
00092 } // end namespace itk
00093 
00094 #ifndef ITK_MANUAL_INSTANTIATION
00095 #include "itkVectorAnisotropicDiffusionFunction.hxx"
00096 #endif
00097 
00098 #endif
00099