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

itkVectorNearestNeighborInterpolateImageFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVectorNearestNeighborInterpolateImageFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/12/21 16:52:03 $
00007   Version:   $Revision: 1.2 $
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 _itkVectorNearestNeighborInterpolateImageFunction_h
00018 #define _itkVectorNearestNeighborInterpolateImageFunction_h
00019 
00020 #include "itkVectorInterpolateImageFunction.h"
00021 
00022 namespace itk
00023 {
00024 
00041 template <class TInputImage, class TCoordRep = float>
00042 class ITK_EXPORT VectorNearestNeighborInterpolateImageFunction : 
00043   public VectorInterpolateImageFunction<TInputImage,TCoordRep> 
00044 {
00045 public:
00047   typedef VectorNearestNeighborInterpolateImageFunction Self;
00048   typedef VectorInterpolateImageFunction<TInputImage,TCoordRep> Superclass;
00049   typedef SmartPointer<Self> Pointer;
00050   typedef SmartPointer<const Self>  ConstPointer;
00051   
00053   itkNewMacro(Self);  
00054 
00056   itkTypeMacro(VectorNearestNeighborInterpolateImageFunction, 
00057     VectorInterpolateImageFunction);
00058 
00060   typedef typename Superclass::InputImageType InputImageType;
00061   typedef typename Superclass::PixelType      PixelType;
00062   typedef typename Superclass::ValueType      ValueType;
00063   typedef typename Superclass::RealType       RealType;
00064     
00066   itkStaticConstMacro(Dimension, unsigned int,
00067                        Superclass::Dimension);
00068 
00070   itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00071 
00073   typedef typename Superclass::IndexType IndexType;
00074 
00076   typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
00077 
00079   typedef typename Superclass::OutputType OutputType;
00080 
00089   virtual OutputType EvaluateAtContinuousIndex( 
00090     const ContinuousIndexType & index ) const;
00091 
00092 protected:
00093   VectorNearestNeighborInterpolateImageFunction();
00094   ~VectorNearestNeighborInterpolateImageFunction(){};
00095   void PrintSelf(std::ostream& os, Indent indent) const;
00096 
00097 private:
00098   VectorNearestNeighborInterpolateImageFunction(const Self&); //purposely not implemented
00099   void operator=(const Self&); //purposely not implemented
00100 
00102   static const unsigned long  m_Neighbors;  
00103 
00104 };
00105 
00106 } // namespace itk
00107 
00108 #ifndef ITK_MANUAL_INSTANTIATION
00109 #include "itkVectorNearestNeighborInterpolateImageFunction.txx"
00110 #endif
00111 
00112 #endif

Generated at Thu May 25 00:14:18 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000