00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkDecisionRuleBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/07/15 21:51:01 $ 00007 Version: $Revision: 1.6 $ 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 __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 #include "itkArray.h" 00025 00026 namespace itk 00027 { 00028 00036 class ITKCommon_EXPORT DecisionRuleBase : public Object 00037 { 00038 public: 00040 typedef DecisionRuleBase Self ; 00041 typedef Object Superclass; 00042 typedef SmartPointer<Self> Pointer; 00043 typedef SmartPointer<const Self> ConstPointer; 00044 00046 itkTypeMacro(DecisionRuleBase, Object); 00047 00049 typedef std::vector< double > VectorType; 00050 typedef Array< double > ArrayType; 00051 00056 virtual unsigned int Evaluate( const VectorType &discriminantScores) const = 0; 00057 00062 virtual unsigned int Evaluate( const ArrayType &discriminantScores) const = 0; 00063 00064 00065 protected: 00066 DecisionRuleBase(); 00067 virtual ~DecisionRuleBase(); 00068 void PrintSelf(std::ostream& os, Indent indent) const; 00069 00070 private: 00071 00072 } ; // end of class 00073 00074 } // namespace itk 00075 00076 #endif 00077 00078 00079 00080 00081 00082 00083
1.4.1 written by Dimitri van Heesch,
© 1997-2000