00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMinimumDecisionRule.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/03/08 20:27:09 $ 00007 Version: $Revision: 1.1 $ 00008 00009 Copyright (c) 2002 Insight 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 __MinimumDecisionRule_h 00018 #define __MinimumDecisionRule_h 00019 00020 #include <vector> 00021 #include "vnl/vnl_matrix.h" 00022 #include "itkObject.h" 00023 #include "itkObjectFactory.h" 00024 #include "itkDecisionRuleBase.h" 00025 00026 namespace itk 00027 { 00028 00033 class ITK_EXPORT MinimumDecisionRule : 00034 public DecisionRuleBase 00035 { 00036 public: 00038 typedef MinimumDecisionRule Self ; 00039 typedef DecisionRuleBase Superclass; 00040 typedef itk::SmartPointer<Self> Pointer; 00041 00043 itkTypeMacro(MinimumDecisionRule, DecisionRuleBase); 00044 00046 itkNewMacro(Self) ; 00047 00048 unsigned int Evaluate(std::vector< double > &discriminantScores) ; 00049 00050 protected: 00051 MinimumDecisionRule() ; 00052 virtual ~MinimumDecisionRule() {} 00053 00054 private: 00055 00056 00057 } ; // end of class 00058 00059 } // namespace itk 00060 00061 #endif 00062 00063 00064 00065 00066 00067 00068