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: 2003/12/17 14:41:27 $
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 __itkDerivativeImageFilter_h
00018 #define __itkDerivativeImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022 #include "itkConceptChecking.h"
00023 
00024 namespace itk
00025 {
00043 template <class TInputImage, class TOutputImage>
00044 class ITK_EXPORT DerivativeImageFilter :
00045     public ImageToImageFilter< TInputImage, TOutputImage > 
00046 {
00047 public:
00049   typedef DerivativeImageFilter Self;
00050   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00051   typedef SmartPointer<Self> Pointer;
00052   typedef SmartPointer<const Self>  ConstPointer;
00053 
00056   typedef typename TOutputImage::PixelType OutputPixelType;
00057   typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00058   typedef typename TInputImage::PixelType InputPixelType;
00059   typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00060 
00063   itkStaticConstMacro(ImageDimension, unsigned int,
00064                       TOutputImage::ImageDimension);
00065   
00067   typedef TInputImage  InputImageType;
00068   typedef TOutputImage OutputImageType;
00069 
00071   itkNewMacro(Self);
00072 
00074   itkTypeMacro(DerivativeImageFilter, ImageToImageFilter);
00075 
00077   itkConceptMacro(SignedOutputPixelType, (Concept::Signed<OutputPixelType>));
00078   
00080   itkSetMacro(Order, unsigned int);
00081   itkGetMacro(Order, unsigned int);
00082   itkSetMacro(Direction, unsigned int);
00083   itkGetMacro(Direction, unsigned int);
00084 
00087   void SetUseImageSpacingOn()
00088   { this->SetUseImageSpacing(true); }
00089   
00092   void SetUseImageSpacingOff()
00093   { this->SetUseImageSpacing(false); }
00094   
00097   itkSetMacro(UseImageSpacing, bool);
00098   itkGetMacro(UseImageSpacing, bool);
00099   
00107   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00108 
00109 protected:
00110   DerivativeImageFilter()
00111   {
00112     m_Order = 1;
00113     m_Direction = 0;
00114     m_UseImageSpacing = true;
00115   }
00116   virtual ~DerivativeImageFilter() {}
00117   void PrintSelf(std::ostream& os, Indent indent) const;
00118 
00124   void GenerateData();
00125 
00126 private:
00127   DerivativeImageFilter(const Self&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 
00131   unsigned int m_Order;
00132 
00134   unsigned int m_Direction;
00135 
00136   bool m_UseImageSpacing;
00137   
00138 };
00139   
00140 } // end namespace itk
00141 
00142 #ifndef ITK_MANUAL_INSTANTIATION
00143 #include "itkDerivativeImageFilter.txx"
00144 #endif
00145 
00146 #endif

Generated at Wed May 24 23:02:56 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000