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

itkMaximumRatioDecisionRule2.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMaximumRatioDecisionRule2.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:58 $
00007   Version:   $Revision: 1.1 $
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 __itkMaximumRatioDecisionRule2_h
00018 #define __itkMaximumRatioDecisionRule2_h
00019 
00020 #include <vector>
00021 #include "vnl/vnl_matrix.h"
00022 
00023 #include "itkNumericTraits.h"
00024 #include "itkDecisionRule.h"
00025 
00026 namespace itk {
00027 namespace Statistics {
00028 
00029 
00044 class ITK_EXPORT MaximumRatioDecisionRule2 : 
00045     public DecisionRule
00046 {
00047 public:
00049   typedef MaximumRatioDecisionRule2         Self;
00050   typedef DecisionRule                      Superclass;
00051   typedef SmartPointer<Self>                Pointer;
00052 
00054   itkTypeMacro(MaximumRatioDecisionRule2, DecisionRule);
00055 
00057   itkNewMacro(Self);
00058 
00059   typedef float                               APrioriValueType;
00060   typedef std::vector< APrioriValueType >     APrioriVectorType;
00061   typedef APrioriVectorType::size_type        APrioriVectorSizeType;
00062 
00063   typedef Superclass::MembershipVectorType   MembershipVectorType;
00064  
00069   virtual unsigned int Evaluate( const MembershipVectorType &discriminantScores) const;
00070 
00071 
00073   void SetAPriori(APrioriVectorType& values);
00074 
00075 protected:
00076   MaximumRatioDecisionRule2();
00077   virtual ~MaximumRatioDecisionRule2() {}
00078   
00079 private:
00080   MaximumRatioDecisionRule2(const Self&); //purposely not implemented
00081   void operator=(const Self&); //purposely not implemented
00082 
00084   APrioriVectorSizeType m_NumberOfClasses;
00085 
00087   vnl_matrix< double > m_APrioriRatioMatrix;
00088 }; // end of class
00089 
00090 } // end of Statistics namespace
00091 } // end of ITK namespace
00092 #endif
00093 

Generated at Tue Sep 15 03:55:03 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000