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

itkSymmetricEigenSystem.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSymmetricEigenSystem.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/07/08 17:20:49 $
00007   Version:   $Revision: 1.7 $
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 __itkSymmetricEigenSystem_h
00018 #define __itkSymmetricEigenSystem_h
00019 
00020 #include "itkObject.h"
00021 #include "vnl/algo/vnl_symmetric_eigensystem.h"
00022 #include "itkObjectFactory.h"
00023 #include "itkObject.h"
00024 #include "itkFixedArray.h"
00025 #include "itkMatrix.h"
00026 #include "itkObjectFactory.h"
00027 
00028 namespace itk
00029 {
00030   
00045 template< class TMatrixElement, int VNumberOfRows >
00046 class ITK_EXPORT SymmetricEigenSystem : public Object
00047 {
00048 public:
00050   typedef SymmetricEigenSystem Self;
00051   typedef Object Superclass;
00052   typedef SmartPointer<Self> Pointer;
00053   typedef SmartPointer<const Self> ConstPointer;
00054   
00056   itkTypeMacro( SymmetricEigenSystem, Object );
00057 
00059   itkNewMacro(Self);
00060 
00062   typedef FixedArray< TMatrixElement, VNumberOfRows > ArrayType;
00063 
00065   typedef FixedArray< ArrayType, VNumberOfRows > Array2DType ;
00066 
00068   typedef Array2DType EigenVectorArrayType ;
00069 
00071   typedef ArrayType EigenValueArrayType ;
00072 
00074   typedef Matrix< TMatrixElement, VNumberOfRows, VNumberOfRows > MatrixType ;
00075 
00077   typedef vnl_symmetric_eigensystem< TMatrixElement > InternalEigenSystemType;
00078 
00080   itkSetObjectMacro(Matrix, MatrixType) ;
00081   MatrixType* GetMatrix()
00082   { return m_Matrix ; }
00083 
00090   itkSetMacro(UseAbsoluteOrder, bool) ;
00091   itkGetMacro(UseAbsoluteOrder, bool) ;
00092 
00094   EigenVectorArrayType* GetEigenVectors()
00095   { return &m_EigenVectors ; } 
00096 
00098   EigenValueArrayType* GetEigenValues()
00099   { return &m_EigenValues ; }
00100 
00103   void Update()
00104   { this->GenerateData() ; }
00105 
00106 protected:
00107   SymmetricEigenSystem();
00108   virtual ~SymmetricEigenSystem();
00109   void PrintSelf(std::ostream& os, Indent indent) const;
00110 
00112   void GenerateData() ;
00113 
00114 private:
00115   SymmetricEigenSystem(const Self&); //purposely not implemented
00116   void operator=(const Self&); //purposely not implemented
00117 
00119   MatrixType* m_Matrix ;
00120 
00122   EigenVectorArrayType m_EigenVectors ;
00123   
00125   EigenValueArrayType m_EigenValues ;
00126 
00129   bool m_UseAbsoluteOrder ;
00130 };
00131 
00132 } // end namespace itk
00133 
00134 #ifndef ITK_MANUAL_INSTANTIATION
00135 #include "itkSymmetricEigenSystem.txx"
00136 #endif
00137 
00138 #endif
00139 
00140 
00141 

Generated at Thu May 25 00:07:24 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000