ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkScalarAnisotropicDiffusionFunction.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 __itkScalarAnisotropicDiffusionFunction_h
00019 #define __itkScalarAnisotropicDiffusionFunction_h
00020 
00021 #include "itkAnisotropicDiffusionFunction.h"
00022 
00023 namespace itk
00024 {
00040 template< class TImage >
00041 class ITK_EXPORT ScalarAnisotropicDiffusionFunction:
00042   public AnisotropicDiffusionFunction< TImage >
00043 {
00044 public:
00045 
00047   typedef ScalarAnisotropicDiffusionFunction     Self;
00048   typedef AnisotropicDiffusionFunction< TImage > Superclass;
00049   typedef SmartPointer< Self >                   Pointer;
00050   typedef SmartPointer< const Self >             ConstPointer;
00051 
00053   itkStaticConstMacro(ImageDimension, unsigned int,
00054                       Superclass::ImageDimension);
00055 
00057   typedef typename Superclass::ImageType        ImageType;
00058   typedef typename Superclass::PixelType        PixelType;
00059   typedef typename Superclass::PixelRealType    PixelRealType;
00060   typedef typename Superclass::RadiusType       RadiusType;
00061   typedef typename Superclass::NeighborhoodType NeighborhoodType;
00062   typedef typename Superclass::TimeStepType     TimeStepType;
00063 
00065   itkTypeMacro(ScalarAnisotropicDiffusionFunction,
00066                AnisotropicDiffusionFunction);
00067 
00068   virtual void CalculateAverageGradientMagnitudeSquared(TImage *);
00069 
00070 protected:
00071   ScalarAnisotropicDiffusionFunction() {}
00072   ~ScalarAnisotropicDiffusionFunction() {}
00073 private:
00074   ScalarAnisotropicDiffusionFunction(const Self &); //purposely not implemented
00075   void operator=(const Self &);                     //purposely not implemented
00076 };
00077 } // end namespace itk
00078 
00079 #ifndef ITK_MANUAL_INSTANTIATION
00080 #include "itkScalarAnisotropicDiffusionFunction.hxx"
00081 #endif
00082 
00083 #endif
00084