00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSingleValuedNonLinearOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/04/29 22:40:14 $ 00007 Version: $Revision: 1.21 $ 00008 00009 Copyright (c) 2002 Insight 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 00069 protected: 00070 SingleValuedNonLinearOptimizer(); 00071 virtual ~SingleValuedNonLinearOptimizer() {} 00072 void PrintSelf(std::ostream& os, Indent indent) const; 00073 00074 CostFunctionPointer m_CostFunction; 00075 00076 private: 00077 SingleValuedNonLinearOptimizer(const Self&); //purposely not implemented 00078 void operator=(const Self&); //purposely not implemented 00079 00080 }; 00081 00082 } // end namespace itk 00083 00084 00085 00086 #endif 00087 00088 00089