00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkDecisionRuleBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/03/08 20:27:08 $ 00007 Version: $Revision: 1.2 $ 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 __itkDecisionRuleBase_h 00018 #define __itkDecisionRuleBase_h 00019 00020 #include <vector> 00021 #include "vnl/vnl_matrix.h" 00022 #include "itkObject.h" 00023 #include "itkObjectFactory.h" 00024 00025 namespace itk 00026 { 00027 00035 class ITK_EXPORT DecisionRuleBase : public Object 00036 { 00037 public: 00039 typedef DecisionRuleBase Self ; 00040 typedef Object Superclass; 00041 typedef SmartPointer<Self> Pointer; 00042 00044 itkTypeMacro(DecisionRuleBase, Object); 00045 00050 virtual unsigned int Evaluate(std::vector< double > 00051 &discriminantScores) = 0 ; 00052 00053 protected: 00054 DecisionRuleBase(); 00055 virtual ~DecisionRuleBase(); 00056 void PrintSelf(std::ostream& os, Indent indent) const; 00057 00058 private: 00059 00060 } ; // end of class 00061 00062 } // namespace itk 00063 00064 #endif 00065 00066 00067 00068 00069 00070 00071