Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
itkDiffusionTensor3DExtended.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Diffusion Applications
4  Module: $HeadURL$
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
8 
9  Copyright (c) Brigham and Women's Hospital (BWH) All Rights Reserved.
10 
11  See License.txt or http://www.slicer.org/copyright/copyright.txt for details.
12 
13 ==========================================================================*/
14 #ifndef itkDiffusionTensor3DExtended_h
15 #define itkDiffusionTensor3DExtended_h
16 
17 #include <itkDiffusionTensor3D.h>
18 #include <itkMatrix.h>
19 
20 namespace itk
21 {
22 
30 template <class T>
31 class DiffusionTensor3DExtended : public DiffusionTensor3D<T>
32 {
33 public:
34  typedef T DataType;
36  typedef DiffusionTensor3D<DataType> Superclass;
37  typedef Matrix<DataType, 3, 3> MatrixType;
38 
39  DiffusionTensor3DExtended() = default;
40  DiffusionTensor3DExtended( const Superclass & tensor );
41  // /Get a Symmetric matrix representing the tensor
43 
44  // /Set the Tensor from a symmetric matrix
45  template <class C>
46  void SetTensorFromMatrix( Matrix<C, 3, 3> matrix );
47 
48  // /Cast the component values of the tensor
49  template <class C>
50  operator DiffusionTensor3DExtended<C> const ();
51 
52 };
53 
54 } // end namespace itk
55 
56 #ifndef ITK_MANUAL_INSTANTIATION
57 #include "itkDiffusionTensor3DExtended.txx"
58 #endif
59 
60 #endif
void SetTensorFromMatrix(Matrix< C, 3, 3 > matrix)
Simplified inverse ITK transforms.
DiffusionTensor3D< DataType > Superclass