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

itkDerivativeOperator.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkDerivativeOperator.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:06 $ 00007 Version: $Revision: 1.19 $ 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 __itkDerivativeOperator_h 00018 #define __itkDerivativeOperator_h 00019 00020 #include "itkExceptionObject.h" 00021 #include "itkNeighborhoodOperator.h" 00022 00023 namespace itk { 00024 00043 template<class TPixel, unsigned int VDimension=2, 00044 class TAllocator = NeighborhoodAllocator<TPixel> > 00045 class ITK_EXPORT DerivativeOperator 00046 : public NeighborhoodOperator<TPixel, VDimension, TAllocator> 00047 { 00048 00049 public: 00051 typedef DerivativeOperator Self; 00052 typedef NeighborhoodOperator<TPixel, VDimension, TAllocator> Superclass; 00053 00054 typedef typename Superclass::PixelType PixelType; 00055 00057 DerivativeOperator() : m_Order(1) {} 00058 00060 DerivativeOperator(const Self& other) 00061 : NeighborhoodOperator<TPixel, VDimension, TAllocator>(other) 00062 { m_Order = other.m_Order; } 00063 00065 Self &operator=(const Self& other) 00066 { 00067 Superclass::operator=(other); 00068 m_Order = other.m_Order; 00069 return *this; 00070 } 00071 00073 void SetOrder(const unsigned int &order) 00074 { m_Order = order; } 00075 00077 unsigned int GetOrder() const { return m_Order; } 00078 00080 virtual void PrintSelf(std::ostream &os, Indent i) const 00081 { 00082 os << i << "DerivativeOperator { this=" << this 00083 << ", m_Order = " << m_Order << "}" << std::endl; 00084 Superclass::PrintSelf(os, i.GetNextIndent()); 00085 } 00086 00087 protected: 00090 typedef typename Superclass::CoefficientVector CoefficientVector; 00091 00093 CoefficientVector GenerateCoefficients(); 00094 00096 void Fill(const CoefficientVector &coeff) 00097 { Superclass::FillCenteredDirectional(coeff); } 00098 00099 private: 00101 unsigned int m_Order; 00102 }; 00103 00104 } // namespace itk 00105 00106 #ifndef ITK_MANUAL_INSTANTIATION 00107 #include "itkDerivativeOperator.txx" 00108 #endif 00109 00110 #endif 00111 00112

Generated at Sun Apr 1 02:27:12 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000