ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkMultipleValuedNonLinearOptimizer.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkMultipleValuedNonLinearOptimizer_h
00019 #define __itkMultipleValuedNonLinearOptimizer_h
00020 
00021 #include "itkNonLinearOptimizer.h"
00022 #include "itkMultipleValuedCostFunction.h"
00023 
00024 namespace itk
00025 {
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 
00048   itkNewMacro(Self);
00049 
00051   itkTypeMacro(MultipleValuedNonLinearOptimizer, NonLinearOptimizer);
00052 
00055   typedef Superclass::ParametersType ParametersType;
00056 
00060   typedef Array< double > MeasureType;
00061 
00065   typedef Array2D< double > DerivativeType;
00066 
00068   virtual void SetCostFunction(CostFunctionType *costFunction);
00069 
00070 protected:
00071   MultipleValuedNonLinearOptimizer();
00072   virtual ~MultipleValuedNonLinearOptimizer() {}
00073   void PrintSelf(std::ostream & os, Indent indent) const;
00074 
00075   CostFunctionPointer m_CostFunction;
00076 private:
00077   MultipleValuedNonLinearOptimizer(const Self &); //purposely not implemented
00078   void operator=(const Self &);                   //purposely not implemented
00079 };
00080 } // end namespace itk
00081 
00082 #endif
00083