ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkSymmetricEigenSystem.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkSymmetricEigenSystem_h
19 #define __itkSymmetricEigenSystem_h
20 
21 #include "itkObject.h"
22 #include "vnl/algo/vnl_symmetric_eigensystem.h"
23 #include "itkObjectFactory.h"
24 #include "itkObject.h"
25 #include "itkFixedArray.h"
26 #include "itkMatrix.h"
27 #include "itkObjectFactory.h"
28 
29 namespace itk
30 {
46 template< typename TMatrixElement, int VNumberOfRows >
48 {
49 public:
52  typedef Object Superclass;
55 
57  itkTypeMacro(SymmetricEigenSystem, Object);
58 
60  itkNewMacro(Self);
61 
64 
67 
70 
73 
76 
78  typedef vnl_symmetric_eigensystem< TMatrixElement > InternalEigenSystemType;
79 
81  itkSetObjectMacro(Matrix, MatrixType);
83  { return m_Matrix; }
85 
92  itkSetMacro(UseAbsoluteOrder, bool);
93  itkGetMacro(UseAbsoluteOrder, bool);
95 
98  { return &m_EigenVectors; }
99 
102  { return &m_EigenValues; }
103 
106  void Update()
107  { this->GenerateData(); }
108 
109 protected:
111  virtual ~SymmetricEigenSystem();
112  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
113 
115  void GenerateData();
116 
117 private:
118  SymmetricEigenSystem(const Self &); //purposely not implemented
119  void operator=(const Self &); //purposely not implemented
120 
123 
126 
129 
133 };
134 } // end namespace itk
135 
136 #ifndef ITK_MANUAL_INSTANTIATION
137 #include "itkSymmetricEigenSystem.hxx"
138 #endif
139 
140 #endif
A templated class holding a M x N size Matrix.
Definition: itkMatrix.h:46
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
void operator=(const Self &)
EigenValueArrayType * GetEigenValues()
wrapper of the vnl_symmetric_eigensystem algorithm
Simulate a standard C array with copy semnatics.
Definition: itkFixedArray.h:50
EigenVectorArrayType m_EigenVectors
EigenVectorArrayType * GetEigenVectors()
Matrix< TMatrixElement, VNumberOfRows, VNumberOfRows > MatrixType
FixedArray< TMatrixElement, VNumberOfRows > ArrayType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
vnl_symmetric_eigensystem< TMatrixElement > InternalEigenSystemType
FixedArray< ArrayType, VNumberOfRows > Array2DType
Base class for most ITK classes.
Definition: itkObject.h:57