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

itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-10-29 11:19:20 $
00007   Version:   $Revision: 1.7 $
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 
00018 #ifndef __itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction_h
00019 #define __itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction_h
00020 
00021 #include "itkVectorInterpolateImageFunction.h"
00022 
00023 namespace itk
00024 {
00025 
00053 template <class TInputImage, class TCoordRep = float>
00054 class ITK_EXPORT VectorLinearInterpolateNearestNeighborExtrapolateImageFunction :
00055       public VectorInterpolateImageFunction<TInputImage,TCoordRep>
00056 {
00057 public:
00058 
00060   typedef VectorLinearInterpolateNearestNeighborExtrapolateImageFunction Self;
00061   typedef VectorInterpolateImageFunction<TInputImage,TCoordRep>          Superclass;
00062   typedef SmartPointer<Self>                                             Pointer;
00063   typedef SmartPointer<const Self>                                       ConstPointer;
00064 
00066   itkNewMacro(Self);
00067 
00069   itkTypeMacro(VectorLinearInterpolateNearestNeighborExtrapolateImageFunction,
00070                VectorInterpolateImageFunction);
00071 
00073   typedef typename Superclass::InputImageType                           InputImageType;
00074   typedef typename Superclass::PixelType                                PixelType;
00075   typedef typename Superclass::ValueType                                ValueType;
00076   typedef typename Superclass::RealType                                 RealType;
00077 
00078   typedef typename Superclass::PointType                                PointType;
00079 
00081   itkStaticConstMacro(Dimension, unsigned int,
00082                       Superclass::Dimension);
00083 
00085   itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00086 
00088   typedef typename Superclass::IndexType                               IndexType;
00089   typedef typename Superclass::IndexValueType                          IndexValueType;
00090 
00092   typedef typename Superclass::ContinuousIndexType                     ContinuousIndexType;
00093 
00095   typedef typename Superclass::OutputType                              OutputType;
00096 
00099   virtual bool IsInsideBuffer( const IndexType & ) const
00100     { 
00101     return true;
00102     }
00103 
00106   virtual bool IsInsideBuffer( const PointType & ) const
00107     {
00108     return true;
00109     }
00110 
00113   virtual bool IsInsideBuffer( const ContinuousIndexType & ) const
00114     {
00115     return true;
00116     }
00117 
00123   virtual OutputType EvaluateAtContinuousIndex(
00124      const ContinuousIndexType & index ) const;
00125 
00131   virtual OutputType EvaluateAtIndex( const IndexType & index ) const;
00132 
00133 protected:
00134   VectorLinearInterpolateNearestNeighborExtrapolateImageFunction();
00135   virtual ~VectorLinearInterpolateNearestNeighborExtrapolateImageFunction() {}
00136 
00137   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00138 
00139 private:
00140   VectorLinearInterpolateNearestNeighborExtrapolateImageFunction(const Self&); //purposely not implemented
00141   void operator=(const Self&); //purposely not implemented
00142 
00144   static const unsigned long  m_Neighbors;
00145 
00146 };
00147 
00148 } // end namespace itk
00149 
00150 #ifndef ITK_MANUAL_INSTANTIATION
00151 #include "itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction.txx"
00152 #endif
00153 
00154 #endif
00155 

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