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

itkSpatialFunctionImageEvaluatorFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSpatialFunctionImageEvaluatorFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:57 $
00007   Version:   $Revision: 1.20 $
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 __itkSpatialFunctionImageEvaluatorFilter_h
00018 #define __itkSpatialFunctionImageEvaluatorFilter_h
00019 
00020 #include "itkImageFunction.h"
00021 #include "itkImageRegionIterator.h"
00022 #include "itkImageToImageFilter.h"
00023 #include "itkSize.h"
00024 #include "itkSpatialFunction.h"
00025 
00026 namespace itk
00027 {
00028 
00041 template<class TSpatialFunction, class TInputImage, class TOutputImage>
00042 class ITK_EXPORT SpatialFunctionImageEvaluatorFilter :
00043     public ImageToImageFilter<TInputImage, TOutputImage>
00044 {
00045 public:
00047   typedef SpatialFunctionImageEvaluatorFilter Self;
00048   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00049   typedef SmartPointer<Self>        Pointer;
00050   typedef SmartPointer<const Self>  ConstPointer;
00051 
00053   itkNewMacro(Self);  
00054 
00056   itkTypeMacro( SpatialFunctionImageEvaluatorFilter, ImageToImageFilter );
00057 
00059   itkStaticConstMacro(NDimensions, unsigned int,
00060                       TInputImage::ImageDimension);
00061 
00063   typedef typename TInputImage::SizeType SizeType;
00064 
00066   typedef typename TOutputImage::IndexType IndexType;
00067 
00069   typedef typename TOutputImage::PixelType PixelType;
00070 
00072   typedef typename TOutputImage::RegionType OutputImageRegionType;
00073 
00075   typedef TSpatialFunction FunctionType;
00076 
00078   typedef typename FunctionType::OutputType FunctionValueType;
00079 
00081   typedef typename FunctionType::InputType PositionType;
00082 
00084   void SetFunction( FunctionType* PixelFunction )
00085   {m_PixelFunction = PixelFunction;};
00086 
00087 protected:
00088   SpatialFunctionImageEvaluatorFilter();
00089   virtual ~SpatialFunctionImageEvaluatorFilter() {};
00090 
00092   void GenerateData();
00093 
00094 private:
00095   SpatialFunctionImageEvaluatorFilter(const Self&); //purposely not implemented
00096   void operator=(const Self&); //purposely not implemented
00097 
00099   FunctionType* m_PixelFunction;
00100 };
00101 
00102 } // end namespace itk
00103 
00104 #ifndef ITK_MANUAL_INSTANTIATION
00105 #include "itkSpatialFunctionImageEvaluatorFilter.txx"
00106 #endif
00107 
00108 #endif
00109 

Generated at Tue Jul 29 22:33:25 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000