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

itkSobelOperator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSobelOperator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/30 15:24:41 $
00007   Version:   $Revision: 1.5 $
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 
00018 #ifndef __itkSobelOperator_h
00019 #define __itkSobelOperator_h
00020 
00021 #include "itkExceptionObject.h"
00022 #include "itkNeighborhoodOperator.h"
00023 
00024 namespace itk {
00025 
00056 template<class TPixel, unsigned int VDimension=2,
00057   class TAllocator = NeighborhoodAllocator<TPixel> >
00058 class ITK_EXPORT SobelOperator
00059   : public NeighborhoodOperator<TPixel, VDimension, TAllocator>
00060 {
00061 
00062 public:
00066   typedef SobelOperator Self;
00067 
00071   typedef NeighborhoodOperator<TPixel, VDimension, TAllocator>  Superclass;
00072 
00073 
00078   SobelOperator() {}
00079 
00084   SobelOperator(const Self& other)
00085     : NeighborhoodOperator<TPixel, VDimension, TAllocator>(other) 
00086   {  }
00087   
00088 
00092   void CreateOperator();   
00093  
00097   Self &operator=(const Self& other)
00098   {
00099     Superclass::operator=(other);
00100     return *this;
00101   }
00105   virtual void PrintSelf(std::ostream &os, Indent i) const  
00106   { 
00107     os << i << "SobelOperator { this=" << this
00108        << "}" << std::endl;
00109     Superclass::PrintSelf(os, i.GetNextIndent());
00110   }
00111   
00112 protected:
00117   typedef typename Superclass::CoefficientVector CoefficientVector;
00118   typedef typename Superclass::PixelType PixelType;
00119 
00123   CoefficientVector GenerateCoefficients();
00124 
00128   void Fill(const CoefficientVector &);
00129 //{   Superclass::FillCenteredDirectional(coeff);  }
00130 
00131 
00132 
00133  
00134 private:
00135 
00136 };
00137 
00138 } // namespace itk
00139 
00140 #ifndef ITK_MANUAL_INSTANTIATION
00141 #include "itkSobelOperator.txx"
00142 #endif
00143 
00144 #endif
00145 
00146 

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