KWStyle - itkMaximumDecisionRule.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkMaximumDecisionRule.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:41 $
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 #ifndef __itkMaximumDecisionRule_h
18 #define __itkMaximumDecisionRule_h
19
20 #include "itkWin32Header.h"
21
22 #include "itkDecisionRuleBase.h"
23
24 NMS namespace itk{ 
25
26 /** \class MaximumDecisionRule
27  *  \brief A Decision rule that choose the class of which discriminant
28  *  score is the largest.
29  */
30  
31 class ITKCommon_EXPORT MaximumDecisionRule : 
32 IND ****public DecisionRuleBase
33 {
34 public:
35   /** Standard class typedefs */ 
36 SEM   typedef MaximumDecisionRule Self ;
37 TDA   typedef DecisionRuleBase Superclass;
38 TDA   typedef SmartPointer<Self> Pointer;
39 TDA   typedef SmartPointer<const Self> ConstPointer;
40
41   /** Run-time type information (and related methods) */
42   itkTypeMacro(MaximumDecisionRule, DecisionRuleBase);
43
44   /** Standard New() method support */
45 SEM   itkNewMacro(Self) ;
46
47   /** Types for the arguments that are acceptable in the Evaluate() method */
48   typedef Superclass::VectorType  VectorType;
49   typedef Superclass::ArrayType   ArrayType;
50 TDA   typedef Superclass::VariableLengthVectorType   VariableLengthVectorType;
51  
52
53   /** The return value of this function is a class label.
54    * Basically, using its internal logic based on the discriminant
55    * scores, this function decides best class label and return it.
56    */
57   virtual unsigned int Evaluate( const VectorType &discriminantScores) const;
58   virtual unsigned int Evaluate( const ArrayType &discriminantScores) const;
59 LEN   virtual unsigned int Evaluate( const VariableLengthVectorType &discriminantScores) const;
60
61
62 protected:
63   MaximumDecisionRule() {}
64   virtual ~MaximumDecisionRule() {}
65 SEM   void PrintSelf(std::ostream& os, Indent indent) const ;
66 SEM } ; // end of class
67
68
69 EML
70 // end of namespace itk
71
72 #endif
73
74 EOF
75 EOF,EML
76 EOF,EML
77 EOF,EML
78 EOF,EML
79 EOF,EML
80 EOF,EML

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