Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkForwardDifferenceOperator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkForwardDifferenceOperator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003-09-10 14:29:08 $
00007   Version:   $Revision: 1.16 $
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 __itkForwardDifferenceOperator_h
00018 #define __itkForwardDifferenceOperator_h
00019 
00020 #include "itkNeighborhoodOperator.h"
00021 #include "itkExceptionObject.h"
00022 
00023 namespace itk {
00024 
00038 template<class TPixel, unsigned int VDimension=2,
00039   class TAllocator = NeighborhoodAllocator<TPixel> >
00040 class ITK_EXPORT ForwardDifferenceOperator
00041   : public NeighborhoodOperator<TPixel, VDimension, TAllocator>
00042 {
00043 public:
00044 
00046   typedef ForwardDifferenceOperator Self;
00047   typedef NeighborhoodOperator<TPixel, VDimension, TAllocator> Superclass;
00048 
00049   typedef typename Superclass::PixelType PixelType;
00050 
00052   ForwardDifferenceOperator() {}
00053 
00055   ForwardDifferenceOperator(const Self& other)
00056     : NeighborhoodOperator<TPixel, VDimension, TAllocator>(other)
00057   {  }
00058 
00060   Self &operator=(const Self& other)
00061   {
00062     Superclass::operator=(other);
00063     return *this;
00064   }
00066 
00067 protected:
00069   typedef typename Superclass::CoefficientVector CoefficientVector;
00070 
00072   CoefficientVector GenerateCoefficients();
00073 
00075   void Fill(const CoefficientVector &coeff)
00076 
00077     { this->FillCenteredDirectional(coeff); }
00078 
00079 };
00080   
00081 
00082 } // namespace itk
00083 
00084 #ifndef ITK_MANUAL_INSTANTIATION
00085 #include "itkForwardDifferenceOperator.txx"
00086 #endif
00087 
00088 #endif
00089 
00090 
00091 

Generated at Mon Apr 14 12:30:12 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000