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

itkExhaustiveOptimizer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkExhaustiveOptimizer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/07/04 22:43:05 $
00007   Version:   $Revision: 1.2 $
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 __itkExhaustiveOptimizer_h
00018 #define __itkExhaustiveOptimizer_h
00019 
00020 #include "itkSingleValuedNonLinearOptimizer.h"
00021 
00022 namespace itk
00023 {
00024   
00081 class ITK_EXPORT ExhaustiveOptimizer : 
00082                     public SingleValuedNonLinearOptimizer
00083 {
00084 public:
00086   typedef ExhaustiveOptimizer      Self;
00087   typedef SingleValuedNonLinearOptimizer               Superclass;
00088   typedef SmartPointer<Self>                           Pointer;
00089   typedef SmartPointer<const Self>                     ConstPointer;
00090   
00091   typedef Array< unsigned long > StepsType;
00093   itkNewMacro(Self);
00094   
00096   itkTypeMacro( ExhaustiveOptimizer,           SingleValuedNonLinearOptimizer   );
00097  
00098   virtual void    StartOptimization( void );
00099 
00100   void StartWalking( void );
00101   void ResumeWalking( void );
00102   void StopWalking(void);
00103   
00104   itkSetMacro( StepLength, double );
00105   itkSetMacro( NumberOfSteps, StepsType );
00106   itkGetConstReferenceMacro( StepLength, double );
00107   itkGetConstReferenceMacro( NumberOfSteps, StepsType );
00108   itkGetConstReferenceMacro( CurrentValue, MeasureType );
00109   itkGetConstReferenceMacro( MaximumMetricValue, MeasureType );
00110   itkGetConstReferenceMacro( MinimumMetricValue, MeasureType );
00111   itkGetConstReferenceMacro( MinimumMetricValuePosition, ParametersType );
00112   itkGetConstReferenceMacro( MaximumMetricValuePosition, ParametersType );
00113   itkGetConstReferenceMacro( CurrentIndex, ParametersType );
00114   itkGetConstReferenceMacro( MaximumNumberOfIterations, unsigned long );
00115 
00116 
00117 protected:
00118   ExhaustiveOptimizer();
00119   virtual ~ExhaustiveOptimizer() {};
00120   void PrintSelf(std::ostream& os, Indent indent) const;
00121 
00125   void AdvanceOneStep( void );
00126   void IncrementIndex( ParametersType & param );
00127 
00128 
00129   
00130 private:  
00131   ExhaustiveOptimizer(const Self&); //purposely not implemented
00132   void operator=(const Self&);//purposely not implemented
00133 
00134 protected:
00135   MeasureType          m_CurrentValue;
00136   StepsType            m_NumberOfSteps;
00137   unsigned long        m_CurrentIteration;
00138   bool                 m_Stop;
00139   unsigned int         m_CurrentParameter;
00140   double               m_StepLength; 
00141   ParametersType       m_CurrentIndex;
00142   unsigned long        m_MaximumNumberOfIterations;
00143   MeasureType          m_MaximumMetricValue;
00144   MeasureType          m_MinimumMetricValue;
00145   ParametersType       m_MinimumMetricValuePosition;
00146   ParametersType       m_MaximumMetricValuePosition;
00147   
00148 };
00149 
00150 } // end namespace itk
00151 
00152 
00153 
00154 #endif
00155     
00156  

Generated at Wed May 24 23:05:31 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000