Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkDecisionRuleBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDecisionRuleBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/10/07 23:10:10 $
00007   Version:   $Revision: 1.7 $
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 #include "itkVariableLengthVector.h"
00026 
00027 namespace itk
00028 {
00029 
00037 class ITKCommon_EXPORT DecisionRuleBase : public Object
00038 {
00039 public:
00041   typedef DecisionRuleBase Self ;
00042   typedef Object Superclass;
00043   typedef SmartPointer<Self> Pointer;
00044   typedef SmartPointer<const Self> ConstPointer;
00045 
00047   itkTypeMacro(DecisionRuleBase, Object);
00048 
00050   typedef std::vector< double >            VectorType;
00051   typedef Array< double >                  ArrayType;
00052   typedef VariableLengthVector< double >   VariableLengthVectorType;
00053 
00058   virtual unsigned int Evaluate( const VectorType &discriminantScores) const = 0;
00059 
00064   virtual unsigned int Evaluate( const ArrayType &discriminantScores) const = 0;
00065 
00066 
00067 protected:
00068   DecisionRuleBase();
00069   virtual ~DecisionRuleBase();
00070   void PrintSelf(std::ostream& os, Indent indent) const;
00071   
00072 private:
00073   
00074 } ; // end of class
00075 
00076 } // namespace itk
00077 
00078 #endif
00079 
00080 
00081 
00082 
00083 
00084 
00085 
00086 

Generated at Mon Mar 12 00:00:57 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000