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

itkMultipleValuedCostFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMultipleValuedCostFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-03-22 21:39:37 $
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 __itkMultipleValuedCostFunction_h
00018 #define __itkMultipleValuedCostFunction_h
00019 
00020 #include "itkCostFunction.h"
00021 #include "itkArray.h"
00022 #include "itkArray2D.h"
00023 #include "itkObjectFactory.h"
00024 #include "itkNumericTraits.h"
00025 
00026 
00027 namespace itk
00028 {
00029  
00036 class ITK_EXPORT MultipleValuedCostFunction :
00037     public CostFunction
00038 {
00039 public:
00041   typedef MultipleValuedCostFunction Self;
00042   typedef CostFunction               Superclass;
00043   typedef SmartPointer<Self>         Pointer;
00044   typedef SmartPointer<const Self>   ConstPointer;
00045 
00046  
00048   itkTypeMacro( MultipleValuedCostFunction, CostFunction );
00049 
00050 
00053   typedef Superclass::ParametersType         ParametersType;
00054 
00055 
00058   typedef Array<double>                 MeasureType;
00059 
00062   typedef Array2D<double>               DerivativeType;
00063 
00064  
00065 
00069   virtual MeasureType GetValue( const ParametersType & parameters ) const = 0;
00070 
00074   virtual unsigned int GetNumberOfValues(void) const  = 0;
00075 
00076 
00080   virtual void GetDerivative( const ParametersType & parameters,
00081                               DerivativeType & derivative ) const = 0;
00082 
00083 protected:
00084   MultipleValuedCostFunction() {};
00085   virtual ~MultipleValuedCostFunction() {};
00086 
00087 
00088 private:
00089   MultipleValuedCostFunction(const Self&); //purposely not implemented
00090   void operator=(const Self&); //purposely not implemented
00091 
00092 
00093 };
00094 
00095 } // end namespace itk
00096 
00097 
00098 #endif
00099 

Generated at Mon Jul 12 2010 19:13:55 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000