|
Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
00001 /*========================================================================= 00002 00003 Program: Diffusion Applications 00004 Module: $HeadURL: http://svn.slicer.org/Slicer4/trunk/Modules/CLI/ResampleDTIVolume/itkDiffusionTensor3DLinearInterpolateFunction.h $ 00005 Language: C++ 00006 Date: $Date: 2012-02-02 01:52:52 -0500 (Thu, 02 Feb 2012) $ 00007 Version: $Revision: 19197 $ 00008 00009 Copyright (c) Brigham and Women's Hospital (BWH) All Rights Reserved. 00010 00011 See License.txt or http://www.slicer.org/copyright/copyright.txt for details. 00012 00013 ==========================================================================*/ 00014 #ifndef __itkDiffusionTensor3DLinearInterpolateFunction_h 00015 #define __itkDiffusionTensor3DLinearInterpolateFunction_h 00016 00017 #include "itkDiffusionTensor3DInterpolateImageFunctionReimplementation.h" 00018 #include <itkLinearInterpolateImageFunction.h> 00019 00020 namespace itk 00021 { 00026 template <class TData, class TCoordRep = double> 00027 class DiffusionTensor3DLinearInterpolateFunction : 00028 public DiffusionTensor3DInterpolateImageFunctionReimplementation<TData, TCoordRep> 00029 { 00030 public: 00031 typedef TData DataType; 00032 typedef DiffusionTensor3DLinearInterpolateFunction Self; 00033 typedef DiffusionTensor3DInterpolateImageFunctionReimplementation<DataType, TCoordRep> Superclass; 00034 typedef typename Superclass::ImageType ImageType; 00035 typedef SmartPointer<Self> Pointer; 00036 typedef SmartPointer<const Self> ConstPointer; 00037 typedef LinearInterpolateImageFunction<ImageType, 00038 TCoordRep> LinearInterpolateImageFunctionType; 00039 00040 itkNewMacro(Self); 00041 protected: 00042 void AllocateInterpolator(); 00043 00044 typename LinearInterpolateImageFunctionType::Pointer linearInterpolator[6]; 00045 }; 00046 00047 } // end namespace itk 00048 00049 #ifndef ITK_MANUAL_INSTANTIATION 00050 #include "itkDiffusionTensor3DLinearInterpolateFunction.txx" 00051 #endif 00052 00053 #endif
1.7.4