00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 }
00105
00106 #ifndef ITK_MANUAL_INSTANTIATION
00107 #include "itkLaplacianOperator.txx"
00108 #endif
00109
00110 #endif
00111
00112