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

itkVectorLinearInterpolateImageFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVectorLinearInterpolateImageFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-10-29 11:18:45 $
00007   Version:   $Revision: 1.17 $
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 __itkVectorLinearInterpolateImageFunction_h
00018 #define __itkVectorLinearInterpolateImageFunction_h
00019 
00020 #include "itkVectorInterpolateImageFunction.h"
00021 
00022 namespace itk
00023 {
00024 
00041 template <class TInputImage, class TCoordRep = double>
00042 class ITK_EXPORT VectorLinearInterpolateImageFunction : 
00043   public VectorInterpolateImageFunction<TInputImage,TCoordRep> 
00044 {
00045 public:
00046 
00048   typedef VectorLinearInterpolateImageFunction                  Self;
00049   typedef VectorInterpolateImageFunction<TInputImage,TCoordRep> Superclass;
00050   typedef SmartPointer<Self>                                    Pointer;
00051   typedef SmartPointer<const Self>                              ConstPointer;
00052 
00054   itkNewMacro(Self);  
00055 
00057   itkTypeMacro(VectorLinearInterpolateImageFunction, 
00058     VectorInterpolateImageFunction);
00059 
00061   typedef typename Superclass::InputImageType InputImageType;
00062   typedef typename Superclass::PixelType      PixelType;
00063   typedef typename Superclass::ValueType      ValueType;
00064   typedef typename Superclass::RealType       RealType;
00065 
00067   itkStaticConstMacro(Dimension, unsigned int,
00068                        Superclass::Dimension);
00069 
00071   itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00072 
00074   typedef typename Superclass::IndexType       IndexType;
00075   typedef typename Superclass::IndexValueType  IndexValueType;
00076 
00078   typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
00079 
00081   typedef typename Superclass::OutputType OutputType;
00082 
00091   virtual OutputType EvaluateAtContinuousIndex( 
00092     const ContinuousIndexType & index ) const;
00093 
00094 protected:
00095   VectorLinearInterpolateImageFunction();
00096   ~VectorLinearInterpolateImageFunction(){};
00097   void PrintSelf(std::ostream& os, Indent indent) const;
00098 
00099 private:
00100   VectorLinearInterpolateImageFunction(const Self&); //purposely not implemented
00101   void operator=(const Self&); //purposely not implemented
00102 
00104   static const unsigned long  m_Neighbors;  
00105 
00106 };
00107 
00108 } // end namespace itk
00109 
00110 // Define instantiation macro for this template.
00111 #define ITK_TEMPLATE_VectorLinearInterpolateImageFunction(_, EXPORT, x, y) namespace itk { \
00112   _(2(class EXPORT VectorLinearInterpolateImageFunction< ITK_TEMPLATE_2 x >)) \
00113   namespace Templates { typedef VectorLinearInterpolateImageFunction< ITK_TEMPLATE_2 x > \
00114                                                   VectorLinearInterpolateImageFunction##y; } \
00115   }
00116 
00117 #if ITK_TEMPLATE_EXPLICIT
00118 # include "Templates/itkVectorLinearInterpolateImageFunction+-.h"
00119 #endif
00120 
00121 #if ITK_TEMPLATE_TXX
00122 # include "itkVectorLinearInterpolateImageFunction.txx"
00123 #endif
00124 
00125 #endif
00126 

Generated at Mon Jul 12 2010 20:11:15 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000