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

itkRecursiveGaussianImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkRecursiveGaussianImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/01/17 20:49:43 $
00007   Version:   $Revision: 1.25 $
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 __itkRecursiveGaussianImageFilter_h
00018 #define __itkRecursiveGaussianImageFilter_h
00019 
00020 #include "itkRecursiveSeparableImageFilter.h"
00021 
00022 namespace itk
00023 {
00024   
00055 template <typename TInputImage, typename TOutputImage=TInputImage>
00056 class ITK_EXPORT RecursiveGaussianImageFilter :
00057     public RecursiveSeparableImageFilter<TInputImage,TOutputImage> 
00058 {
00059 public:
00061   typedef RecursiveGaussianImageFilter  Self;
00062   typedef RecursiveSeparableImageFilter<TInputImage,TOutputImage> Superclass;
00063   typedef SmartPointer<Self>   Pointer;
00064   typedef SmartPointer<const Self>  ConstPointer;
00065 
00066   typedef typename Superclass::RealType      RealType;
00067 
00069   itkNewMacro(Self);
00070   
00072   itkTypeMacro( RecursiveGaussianImageFilter, RecursiveSeparableImageFilter );
00073 
00076   itkGetMacro( Sigma, RealType );
00077   itkSetMacro( Sigma, RealType );
00078 
00082   typedef  enum { ZeroOrder, FirstOrder, SecondOrder } OrderEnumType;
00083  
00085   typedef TOutputImage      OutputImageType;
00086 
00087 
00103   itkSetMacro( NormalizeAcrossScale, bool );
00104   itkGetMacro( NormalizeAcrossScale, bool );
00105 
00112   itkSetMacro( Order, OrderEnumType );
00113   itkGetMacro( Order, OrderEnumType );
00114 
00116   void SetZeroOrder();
00117 
00119   void SetFirstOrder();
00120 
00122   void SetSecondOrder();
00123   
00124    
00125 protected:
00126   RecursiveGaussianImageFilter();
00127   virtual ~RecursiveGaussianImageFilter() {};
00128   void PrintSelf(std::ostream& os, Indent indent) const;
00129 
00134   virtual void SetUp(RealType spacing);
00135 
00136 private:  
00137   RecursiveGaussianImageFilter(const Self&); //purposely not implemented
00138   void operator=(const Self&); //purposely not implemented
00139 
00141   void ComputeNCoefficients(RealType sigmad,
00142           RealType A1, RealType B1, RealType W1, RealType L1,
00143           RealType A2, RealType B2, RealType W2, RealType L2,
00144           RealType& N0, RealType& N1,
00145           RealType& N2, RealType& N3,
00146           RealType& SN, RealType& DN, RealType& EN);
00148   void ComputeDCoefficients(RealType sigmad,
00149           RealType W1, RealType L1, RealType W2, RealType L2,
00150           RealType& SD, RealType& DD, RealType& ED);
00153   void ComputeRemainingCoefficients(bool symmetric);
00154 
00156   RealType m_Sigma;
00157 
00159   bool m_NormalizeAcrossScale; 
00160 
00161   OrderEnumType m_Order;
00162 };
00163 
00164 } // end namespace itk
00165 
00166 #ifndef ITK_MANUAL_INSTANTIATION
00167 #include "itkRecursiveGaussianImageFilter.txx"
00168 #endif
00169 
00170 #endif
00171 

Generated at Wed Mar 30 00:08:26 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000