00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMultipleValuedNonLinearOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/09/24 21:24:35 $ 00007 Version: $Revision: 1.21 $ 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 __itkMultipleValuedNonLinearOptimizer_h 00018 #define __itkMultipleValuedNonLinearOptimizer_h 00019 00020 #include "itkNonLinearOptimizer.h" 00021 #include "itkArray2D.h" 00022 #include "itkMultipleValuedCostFunction.h" 00023 00024 namespace itk 00025 { 00026 00033 class ITK_EXPORT MultipleValuedNonLinearOptimizer : 00034 public NonLinearOptimizer 00035 { 00036 public: 00038 typedef MultipleValuedNonLinearOptimizer Self; 00039 typedef NonLinearOptimizer Superclass; 00040 typedef SmartPointer<Self> Pointer; 00041 typedef SmartPointer<const Self> ConstPointer; 00042 00044 typedef MultipleValuedCostFunction CostFunctionType; 00045 typedef CostFunctionType::Pointer CostFunctionPointer; 00046 00047 00049 itkNewMacro(Self); 00050 00052 itkTypeMacro( MultipleValuedNonLinearOptimizer, NonLinearOptimizer ); 00053 00056 typedef Superclass::ParametersType ParametersType; 00057 00061 typedef Array<double> MeasureType; 00062 00066 typedef Array2D<double> DerivativeType; 00067 00069 virtual void SetCostFunction( CostFunctionType * costFunction ); 00070 00071 protected: 00072 MultipleValuedNonLinearOptimizer(); 00073 virtual ~MultipleValuedNonLinearOptimizer() {}; 00074 void PrintSelf(std::ostream& os, Indent indent) const; 00075 00076 CostFunctionPointer m_CostFunction; 00077 00078 private: 00079 MultipleValuedNonLinearOptimizer(const Self&); //purposely not implemented 00080 void operator=(const Self&); //purposely not implemented 00081 00082 00083 }; 00084 00085 } // end namespace itk 00086 00087 00088 00089 #endif 00090 00091 00092