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

itkDerivativeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDerivativeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:39:01 $
00007   Version:   $Revision: 1.16 $
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 __itkDerivativeImageFilter_h
00018 #define __itkDerivativeImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022 
00023 namespace itk
00024 {
00037 template <class TInputImage, class TOutputImage>
00038 class ITK_EXPORT DerivativeImageFilter :
00039     public ImageToImageFilter< TInputImage, TOutputImage > 
00040 {
00041 public:
00043   typedef DerivativeImageFilter Self;
00044   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00045   typedef SmartPointer<Self> Pointer;
00046   typedef SmartPointer<const Self>  ConstPointer;
00047 
00050   typedef typename TOutputImage::PixelType OutputPixelType;
00051   typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00052   typedef typename TInputImage::PixelType InputPixelType;
00053   typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00054 
00057   itkStaticConstMacro(ImageDimension, unsigned int,
00058                       TOutputImage::ImageDimension);
00059   
00061   typedef TInputImage  InputImageType;
00062   typedef TOutputImage OutputImageType;
00063 
00065   itkNewMacro(Self);
00066 
00068   itkTypeMacro(DerivativeImageFilter, ImageToImageFilter);
00069   
00071   itkSetMacro(Order, unsigned int);
00072   itkGetMacro(Order, unsigned int);
00073   itkSetMacro(Direction, unsigned int);
00074   itkGetMacro(Direction, unsigned int);
00075   
00083   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00084 
00085 protected:
00086   DerivativeImageFilter() {m_Order = 0; m_Direction = 0;}
00087   virtual ~DerivativeImageFilter() {}
00088   void PrintSelf(std::ostream& os, Indent indent) const;
00089 
00095   void GenerateData();
00096 
00097 private:
00098   DerivativeImageFilter(const Self&); //purposely not implemented
00099   void operator=(const Self&); //purposely not implemented
00100 
00102   unsigned int m_Order;
00103 
00105   unsigned int m_Direction;
00106 
00107 };
00108   
00109 } // end namespace itk
00110 
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkDerivativeImageFilter.txx"
00113 #endif
00114 
00115 #endif

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