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

itkCorrespondingMedialNodeClique.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCorrespondingMedialNodeClique.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-04-06 12:50:58 $
00007   Version:   $Revision: 1.5 $
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 __itkCorrespondingMedialNodeClique_h
00018 #define __itkCorrespondingMedialNodeClique_h
00019 
00020 #include "vnl/vnl_matrix.h"
00021 #include "vnl/vnl_vector.h"
00022 #include "vnl/vnl_vector_fixed.h"
00023 #include "vnl/vnl_matrix_fixed.h"
00024 #include "itkFixedArray.h"
00025 #include "itkBloxCoreAtomPixel.h"
00026 
00027 #include <list>
00028 
00029 namespace itk
00030 {
00031 
00041 template <unsigned int VImageDimension, unsigned int VCliqueSize>
00042 class CorrespondingMedialNodeClique
00043 {
00044 public:
00045 
00047   typedef BloxCoreAtomPixel<VImageDimension> ItemType;
00048 
00050   std::vector<ItemType*> m_ItemPointer;
00051 
00053   void SetNodePointer(ItemType* itemPointer, unsigned int index) 
00054     {m_ItemPointer[index] = itemPointer;}
00055 
00057   typedef FixedArray<vnl_vector_fixed<double, VImageDimension>, VCliqueSize> 
00058                                                               CoordinateType; 
00059 
00061   typedef vnl_vector_fixed<double, VCliqueSize> CenterOfMassType;
00062 
00064   typedef vnl_matrix_fixed<double, VImageDimension+1, VImageDimension+1> 
00065                                                           TransformMatrixType;  
00066 
00068   void SetNodeCoordinates(CoordinateType * coordinates) 
00069     {m_NodeCoordinates = coordinates;}
00070   CoordinateType * GetNodeCoordinates() {return m_NodeCoordinates;}
00072 
00074   void SetCenterOfMass(CenterOfMassType * centerOfMass) 
00075     {m_CenterOfMass = centerOfMass;}
00076   CenterOfMassType * GetCenterOfMass() { return m_CenterOfMass;}
00078 
00080   void SetTransformMatrix(TransformMatrixType* transformMatrix) 
00081     {m_TransformMatrix = transformMatrix;}
00082   TransformMatrixType * GetTransformMatrix() {return m_TransformMatrix;}
00084 
00086   void SetNodeIndex(int index, int nodeIndex) 
00087     {m_NodeIndex[index] = nodeIndex;}
00088   int GetNodeIndex(int index) {return m_NodeIndex[index];}
00090 
00092   void SetCorrespondenceValue(int index, float correspondenceValue) 
00093     {m_CorrespondenceValue[index] = correspondenceValue;}
00094   float GetCorrespondenceValue(int index) 
00095     {return m_CorrespondenceValue[index];}
00097 
00098   CorrespondingMedialNodeClique();
00099   ~CorrespondingMedialNodeClique();
00100 
00101 private:
00102 
00104   CoordinateType * m_NodeCoordinates;
00105 
00107   CenterOfMassType * m_CenterOfMass;
00108 
00110   TransformMatrixType * m_TransformMatrix;
00111 
00113   int m_NodeIndex[VCliqueSize];
00114 
00116   float m_CorrespondenceValue[VCliqueSize];
00117 
00119   double m_AverageDistance;
00120 };
00121 
00122 
00123 } // end namespace itk
00124 
00125 #ifndef ITK_MANUAL_INSTANTIATION
00126 #include "itkCorrespondingMedialNodeClique.txx"
00127 #endif
00128 
00129 #endif
00130 

Generated at Sat Feb 28 12:16:17 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000