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

itkMaximumRatioDecisionRule.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMaximumRatioDecisionRule.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/07/15 21:51:01 $
00007   Version:   $Revision: 1.8 $
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 __MaximumRatioDecisionRule_h
00018 #define __MaximumRatioDecisionRule_h
00019 
00020 #include "itkWin32Header.h"
00021 
00022 #include <vector>
00023 #include "vnl/vnl_matrix.h"
00024 
00025 #include "itkNumericTraits.h"
00026 #include "itkDecisionRuleBase.h"
00027 
00028 namespace itk {
00029 
00044 class ITKCommon_EXPORT MaximumRatioDecisionRule : 
00045     public DecisionRuleBase
00046 {
00047 public:
00049   typedef MaximumRatioDecisionRule Self ;
00050   typedef DecisionRuleBase Superclass;
00051   typedef SmartPointer<Self> Pointer;
00052   
00054   itkTypeMacro(MaximumRatioDecisionRule, DecisionRuleBase);
00055   
00057   itkNewMacro(Self) ;
00058   
00059   typedef float APrioriValueType ;
00060   typedef std::vector< APrioriValueType > APrioriVectorType ;
00061 
00062 
00064   typedef Superclass::VectorType  VectorType;
00065   typedef Superclass::ArrayType   ArrayType;
00066  
00067 
00072   virtual unsigned int Evaluate( const VectorType &discriminantScores) const;
00073 
00078   virtual unsigned int Evaluate( const ArrayType &discriminantScores) const;
00079 
00080 
00082   void SetAPriori(APrioriVectorType& values) ;
00083 
00084 protected:
00085   MaximumRatioDecisionRule() ;
00086   virtual ~MaximumRatioDecisionRule() {}
00087   
00088 private:
00090   unsigned int m_NumberOfClasses ;
00091 
00093   vnl_matrix< double > m_APrioriRatioMatrix ;
00094 } ; // end of class
00095 
00096 } // end of namespace
00097 #endif
00098 
00099 
00100 
00101 
00102 
00103 
00104 

Generated at Wed May 24 23:38:04 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000