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

itkLaplacianOperator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLaplacianOperator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/07/28 12:33:59 $
00007   Version:   $Revision: 1.6 $
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 __itkLaplacianOperator_h
00018 #define __itkLaplacianOperator_h
00019 
00020 #include "itkExceptionObject.h"
00021 #include "itkNeighborhoodOperator.h"
00022 
00023 namespace itk {
00024 
00048 template<class TPixel, unsigned int VDimension=2,
00049   class TAllocator = NeighborhoodAllocator<TPixel> >
00050 class ITK_EXPORT LaplacianOperator
00051   : public NeighborhoodOperator<TPixel, VDimension, TAllocator>
00052 {
00053 public:
00055   typedef LaplacianOperator Self;
00056 
00058   typedef NeighborhoodOperator<TPixel, VDimension, TAllocator>  Superclass;
00059 
00060   typedef typename Superclass::PixelType PixelType;
00061 
00063   LaplacianOperator() {}
00064 
00066   LaplacianOperator(const Self& other)
00067     : NeighborhoodOperator<TPixel, VDimension, TAllocator>(other) 
00068   {  }
00069   
00071   void CreateOperator();  
00072 
00073  
00075   Self &operator=(const Self& other)
00076   {
00077     Superclass::operator=(other);
00078     return *this;
00079   }
00080   
00082   virtual void PrintSelf(std::ostream &os, Indent i) const  
00083   { 
00084     os << i << "LaplacianOperator { this=" << this
00085        << "}" << std::endl;
00086     Superclass::PrintSelf(os, i.GetNextIndent());
00087   }
00088 protected:
00091   typedef typename Superclass::CoefficientVector CoefficientVector;
00092 
00094   CoefficientVector GenerateCoefficients();
00095 
00098   void Fill(const CoefficientVector &);
00099 
00100 private:
00101 
00102 };
00103 
00104 } // namespace itk
00105 
00106 #ifndef ITK_MANUAL_INSTANTIATION
00107 #include "itkLaplacianOperator.txx"
00108 #endif
00109 
00110 #endif
00111 
00112 

Generated at Fri May 21 01:14:59 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000