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: 2002/07/28 12:32:51 $
00007   Version:   $Revision: 1.15 $
00008 
00009   Copyright (c) 2002 Insight 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:
00045   typedef ForwardDifferenceOperator Self;
00046   typedef NeighborhoodOperator<TPixel, VDimension, TAllocator> Superclass;
00047   
00048   typedef typename Superclass::PixelType PixelType;
00049 
00051   ForwardDifferenceOperator() {}
00052 
00054   ForwardDifferenceOperator(const Self& other)
00055     : NeighborhoodOperator<TPixel, VDimension, TAllocator>(other)
00056   {  }
00057 
00059   Self &operator=(const Self& other)
00060   {
00061     Superclass::operator=(other);
00062     return *this;
00063   }
00064   
00065 protected:
00067   typedef typename Superclass::CoefficientVector CoefficientVector;
00068   
00070   CoefficientVector GenerateCoefficients();
00071   
00073   void Fill(const CoefficientVector &coeff)
00074 
00075     { this->FillCenteredDirectional(coeff); }
00076 
00077 };
00078   
00079 
00080 } // namespace itk
00081 
00082 #ifndef ITK_MANUAL_INSTANTIATION
00083 #include "itkForwardDifferenceOperator.txx"
00084 #endif
00085 
00086 #endif
00087 
00088 

Generated at Wed Mar 12 01:12:57 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000