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: 2008-10-07 09:09:39 $
00007   Version:   $Revision: 1.9 $
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   DecisionRuleBase(const Self&); //purposely not implemented
00074   void operator=(const Self&); //purposely not implemented
00075 }; // end of class
00076 
00077 } // namespace itk
00078 
00079 #endif
00080 

Generated at Fri Apr 16 18:12:34 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000