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

itkUnaryMedialNodeMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkUnaryMedialNodeMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:40 $
00007   Version:   $Revision: 1.2 $
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 __itkUnaryMedialNodeMetric_h
00018 #define __itkUnaryMedialNodeMetric_h
00019 
00020 #include "itkLightObject.h"
00021 #include "vnl/vnl_vector_fixed.h"
00022 #include "itkBloxCoreAtomPixel.h"
00023 
00024 namespace itk
00025 {
00026   
00047 template<int VDimensions = 3>
00048 class UnaryMedialNodeMetric : public LightObject 
00049 {
00050 public:
00051 
00053   typedef UnaryMedialNodeMetric           Self;
00054   typedef LightObject                     Superclass; 
00055   typedef SmartPointer<Self>              Pointer;
00056   typedef SmartPointer<const Self>        ConstPointer;
00057 
00059   itkNewMacro(Self);
00060 
00062   itkTypeMacro(UnaryMedialNodeMetric, LightObject);
00063 
00065   typedef BloxCoreAtomPixel<VDimensions> MedialNodeType;
00066   typedef typename BloxCoreAtomPixel<VDimensions>::Pointer MedialNodePointerType;
00067   typedef typename MedialNodeType::EigenvalueType EigenvalueType;
00068 
00070   void Initialize(void);
00071 
00073   void SetMedialNodes(MedialNodeType * medialNodeA, MedialNodeType * medialNodeB);
00074 
00077   double GetResult(){return m_MetricResult;}
00078 
00079 protected:
00080 
00082   UnaryMedialNodeMetric();
00083 
00085   ~UnaryMedialNodeMetric(){}
00086 
00087   void operator=(const Self&); //purposely not implemented
00088 
00089   void PrintSelf(std::ostream& os, Indent indent) const;
00090 
00091 private:
00092   
00094   MedialNodeType * m_MedialNodeA;
00095   MedialNodeType * m_MedialNodeB;
00096 
00098   double m_MetricResult;
00099 };
00100 
00101 } // end namespace itk
00102 
00103 #ifndef ITK_MANUAL_INSTANTIATION
00104 #include "itkUnaryMedialNodeMetric.txx"
00105 #endif
00106 
00107 #endif
00108 
00109 
00110 
00111 

Generated at Tue Jul 29 23:06:55 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000