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

itkSingleValuedNonLinearOptimizer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSingleValuedNonLinearOptimizer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-03-22 21:39:38 $
00007   Version:   $Revision: 1.25 $
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 __itkSingleValuedNonLinearOptimizer_h
00018 #define __itkSingleValuedNonLinearOptimizer_h
00019 
00020 #include "itkNonLinearOptimizer.h"
00021 #include "itkSingleValuedCostFunction.h"
00022 
00023 namespace itk
00024 {
00025   
00033 class ITK_EXPORT SingleValuedNonLinearOptimizer : 
00034     public NonLinearOptimizer
00035 {
00036 public:
00038   typedef SingleValuedNonLinearOptimizer  Self;
00039   typedef NonLinearOptimizer              Superclass;
00040   typedef SmartPointer<Self>              Pointer;
00041   typedef SmartPointer<const Self>        ConstPointer;
00042 
00044   itkNewMacro(Self);
00045 
00047   itkTypeMacro( SingleValuedNonLinearOptimizer, 
00048                 NonLinearOptimizer );
00049 
00052   typedef Superclass::ParametersType ParametersType;
00053 
00055   typedef  SingleValuedCostFunction         CostFunctionType;
00056   typedef  CostFunctionType::Pointer        CostFunctionPointer;
00057 
00060   typedef CostFunctionType::MeasureType   MeasureType;
00061 
00064   typedef CostFunctionType::DerivativeType DerivativeType;
00065 
00067   virtual void SetCostFunction( CostFunctionType * costFunction );
00068 
00070   itkGetConstObjectMacro( CostFunction, CostFunctionType );
00071 
00073   MeasureType GetValue( const ParametersType & parameters) const;
00074 
00075 protected:
00076   SingleValuedNonLinearOptimizer();
00077   virtual ~SingleValuedNonLinearOptimizer() {}
00078   void PrintSelf(std::ostream& os, Indent indent) const;
00079 
00080   CostFunctionPointer           m_CostFunction;
00081 
00082 private: 
00083   SingleValuedNonLinearOptimizer(const Self&); //purposely not implemented
00084   void operator=(const Self&); //purposely not implemented
00085   
00086 };
00087 
00088 } // end namespace itk
00089 
00090 #endif
00091 

Generated at Tue Sep 15 04:59:45 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000