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

itkRayCastInterpolateImageFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Program:   Insight Segmentation & Registration Toolkit
00004 Module:    $RCSfile: itkRayCastInterpolateImageFunction.h,v $
00005 Language:  C++
00006 Date:      $Date: 2005/11/04 19:29:44 $
00007 Version:   $Revision: 1.14 $
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 _itkRayCastInterpolateImageFunction_h
00018 #define _itkRayCastInterpolateImageFunction_h
00019 
00020 #include "itkInterpolateImageFunction.h"
00021 #include "itkTransform.h"
00022 #include "itkVector.h"
00023 
00024 namespace itk
00025 {
00026 
00038 template <class TInputImage, class TCoordRep = float>
00039 class ITK_EXPORT RayCastInterpolateImageFunction : 
00040     public InterpolateImageFunction<TInputImage,TCoordRep> 
00041 {
00042 public:
00044   typedef RayCastInterpolateImageFunction Self;
00045   typedef InterpolateImageFunction<TInputImage,TCoordRep> Superclass;
00046   typedef SmartPointer<Self> Pointer;
00047   typedef SmartPointer<const Self>  ConstPointer;
00048 
00050   itkStaticConstMacro(InputImageDimension, unsigned int,
00051                       TInputImage::ImageDimension);
00052 
00057   typedef Transform<TCoordRep,3,3> TransformType;
00058 
00059   typedef typename TransformType::Pointer            TransformPointer;
00060   typedef typename TransformType::InputPointType     InputPointType;
00061   typedef typename TransformType::OutputPointType    OutputPointType;
00062   typedef typename TransformType::ParametersType     TransformParametersType;
00063   typedef typename TransformType::JacobianType       TransformJacobianType;
00064 
00065   typedef typename Superclass::InputPixelType        PixelType;
00066 
00067   typedef typename TInputImage::SizeType             SizeType;
00068 
00069   typedef Vector<TCoordRep, 3>                       DirectionType;
00070 
00072   typedef InterpolateImageFunction<TInputImage,TCoordRep> InterpolatorType;
00073 
00074   typedef typename InterpolatorType::Pointer         InterpolatorPointer;
00075 
00076   
00078   itkTypeMacro(RayCastInterpolateImageFunction, InterpolateImageFunction);
00079 
00081   itkNewMacro(Self);  
00082 
00084   typedef typename Superclass::OutputType OutputType;
00085 
00087   typedef typename Superclass::InputImageType InputImageType;
00088 
00090   typedef typename Superclass::RealType RealType;
00091 
00093   itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00094 
00096   typedef typename Superclass::PointType PointType;
00097 
00099   typedef typename Superclass::IndexType IndexType;
00100 
00102   typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
00103 
00104 
00105 
00116   virtual OutputType Evaluate( const PointType& point ) const;
00117 
00129   virtual OutputType EvaluateAtContinuousIndex( 
00130     const ContinuousIndexType &index ) const;
00131 
00132 
00134   itkSetObjectMacro( Transform, TransformType );
00135 
00137   itkGetObjectMacro( Transform, TransformType );
00138 
00140   itkSetObjectMacro( Interpolator, InterpolatorType );
00141 
00143   itkGetObjectMacro( Interpolator, InterpolatorType );
00144 
00146   itkSetMacro( FocalPoint, InputPointType );
00147 
00149   itkGetMacro( FocalPoint, InputPointType );
00150 
00152   itkSetMacro( Threshold, double );
00153 
00155   itkGetMacro( Threshold, double );
00156 
00160   inline bool IsInsideBuffer( const PointType & ) const
00161     { 
00162       return true;
00163     }
00164   bool IsInsideBuffer( const ContinuousIndexType &  ) const
00165     {
00166       return true;
00167     }
00168   bool IsInsideBuffer( const IndexType &  ) const
00169     { 
00170       return true;
00171     }
00173 
00174 protected:
00175 
00177   RayCastInterpolateImageFunction();
00178 
00180   ~RayCastInterpolateImageFunction(){};
00181 
00183   void PrintSelf(std::ostream& os, Indent indent) const;
00184   
00186   TransformPointer m_Transform;
00187 
00189   InputPointType m_FocalPoint;
00190 
00192   double m_Threshold;
00193 
00195   InterpolatorPointer m_Interpolator;
00196 
00197 
00198 private:
00199   RayCastInterpolateImageFunction( const Self& ); //purposely not implemented
00200   void operator=( const Self& ); //purposely not implemented
00201 
00202 
00203 };
00204 
00205 } // namespace itk
00206 
00207 #ifndef ITK_MANUAL_INSTANTIATION
00208 #include "itkRayCastInterpolateImageFunction.txx"
00209 #endif
00210 
00211 #endif
00212 

Generated at Mon Mar 12 02:31:01 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000