KWStyle - itkMinimumDecisionRule.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkMinimumDecisionRule.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:42 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17 DEF #ifndef __MinimumDecisionRule_h
18 DEF #define __MinimumDecisionRule_h
19
20 #include "itkWin32Header.h"
21
22 #include <vector>
23 #include "vnl/vnl_matrix.h"
24 #include "itkObject.h"
25 #include "itkObjectFactory.h"
26 #include "itkDecisionRuleBase.h"
27
28 namespace itk
29 {
30
31 /** \class MinimumDecisionRule
32  *  \brief A Decision rule that choose the class that has minimum value
33  */
34  
35 class ITKCommon_EXPORT MinimumDecisionRule : 
36 IND **public DecisionRuleBase
37 {
38 IND *public:
39   /** Standard class typedefs */ 
40 SEM   typedef MinimumDecisionRule Self ;
41 TDA   typedef DecisionRuleBase Superclass;
42 TDA   typedef itk::SmartPointer<Self> Pointer;
43   
44   /** Run-time type information (and related methods) */
45   itkTypeMacro(MinimumDecisionRule, DecisionRuleBase);
46   
47   /** Standard New() method support */
48 SEM   itkNewMacro(Self) ;
49   
50
51   /** Types for the arguments that are acceptable in the Evaluate() method */
52   typedef Superclass::VectorType  VectorType;
53   typedef Superclass::ArrayType   ArrayType;
54  
55
56   /** The return value of this function is a class label.
57    * Basically, using its internal logic based on the discriminant
58    * scores, this function decides best class label and return it.
59    */
60   virtual unsigned int Evaluate( const VectorType &discriminantScores) const;
61
62   /** The return value of this function is a class label.
63    * Basically, using its internal logic based on the discriminant
64    * scores, this function decides best class label and return it.
65    */
66   virtual unsigned int Evaluate( const ArrayType &discriminantScores) const;
67
68
69 IND *protected:
70 SEM   MinimumDecisionRule() ;
71   virtual ~MinimumDecisionRule() {}
72   
73 IND *private:
74
75
76 SEM } ; // end of class
77
78 // namespace itk
79
80 #endif
81
82 EOF
83 EOF,EML
84 EOF,EML
85 EOF,EML
86 EOF,EML
87 EOF,EML
88 EOF,EML

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:25PM
© Kitware Inc.