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

itkDiffusionTensor3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDiffusionTensor3D.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-07 09:09:39 $
00007   Version:   $Revision: 1.10 $
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 __itkDiffusionTensor3D_h
00018 #define __itkDiffusionTensor3D_h
00019 
00020 // Undefine an eventual DiffusionTensor3D macro
00021 #ifdef DiffusionTensor3D
00022 #undef DiffusionTensor3D
00023 #endif
00024 
00025 #include <itkSymmetricSecondRankTensor.h>
00026 
00027 
00028 namespace itk
00029 {
00030 
00078 template < typename TComponent >
00079 class DiffusionTensor3D: public SymmetricSecondRankTensor<TComponent,3>
00080 {
00081 public:
00083   typedef DiffusionTensor3D                           Self;
00084   typedef SymmetricSecondRankTensor<TComponent, 3>    Superclass;
00085 
00087   typedef typename Superclass::ValueType             ValueType;
00088   typedef typename Superclass::ComponentType         ComponentType;
00089 #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ == 3 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ == 3)
00090   typedef ComponentType ComponentArrayType[6];
00091 #else
00092   typedef typename Superclass::ComponentArrayType    ComponentArrayType;
00093 #endif
00094   typedef typename Superclass::AccumulateValueType   AccumulateValueType;
00095   typedef typename Superclass::RealValueType         RealValueType;
00096 
00097   typedef typename Superclass::EigenValuesArrayType    EigenValuesArrayType;
00098   typedef typename Superclass::EigenVectorsMatrixType  EigenVectorsMatrixType;
00099 
00101   DiffusionTensor3D();
00102 
00104   DiffusionTensor3D(const Self& r);
00105   DiffusionTensor3D(const Superclass& r);
00106   DiffusionTensor3D(const ComponentType& r);
00107   DiffusionTensor3D(const ComponentArrayType r);
00109 
00111   Self& operator= (const Self& r);
00112   Self& operator= (const Superclass & r);
00113   Self& operator= (const ComponentType& r);
00114   Self& operator= (const ComponentArrayType r);
00116 
00118   AccumulateValueType GetTrace() const;
00119 
00121   RealValueType GetFractionalAnisotropy() const;
00122 
00124   RealValueType GetRelativeAnisotropy() const;
00125 
00127   RealValueType GetInnerScalarProduct() const;
00128 
00129 };
00130 
00131 } // end namespace itk
00132 
00133 // Define instantiation macro for this template.
00134 #define ITK_TEMPLATE_DiffusionTensor3D(_, EXPORT, x, y) namespace itk { \
00135   _(1(class EXPORT DiffusionTensor3D< ITK_TEMPLATE_1 x >)) \
00136   namespace Templates { typedef DiffusionTensor3D< ITK_TEMPLATE_1 x > \
00137                                             DiffusionTensor3D##y; } \
00138   }
00139 
00140 #if ITK_TEMPLATE_EXPLICIT
00141 # include "Templates/itkDiffusionTensor3D+-.h"
00142 #endif
00143 
00144 #if ITK_TEMPLATE_TXX
00145 # include "itkDiffusionTensor3D.txx"
00146 #endif
00147 
00148 #endif
00149 

Generated at Wed Nov 5 21:09:21 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000