ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkCostFunction.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 __itkCostFunction_h
00019 #define __itkCostFunction_h
00020 
00021 #include "itkObject.h"
00022 #include "itkObjectFactory.h"
00023 #include "itkArray.h"
00024 #include "itkOptimizerParameters.h"
00025 
00026 namespace itk
00027 {
00036 class ITK_EXPORT CostFunction:public Object
00037 {
00038 public:
00040   typedef CostFunction               Self;
00041   typedef Object                     Superclass;
00042   typedef SmartPointer< Self >       Pointer;
00043   typedef SmartPointer< const Self > ConstPointer;
00044 
00046   itkTypeMacro(CostFunction, Object);
00047 
00050   typedef double                                     ParametersValueType;
00051   typedef OptimizerParameters< ParametersValueType > ParametersType;
00052 
00056   virtual unsigned int GetNumberOfParameters(void) const  = 0;
00057 
00058 protected:
00059   CostFunction() {}
00060   virtual ~CostFunction() {}
00061   void PrintSelf(std::ostream & os, Indent indent) const;
00062 
00063 private:
00064   CostFunction(const Self &);   //purposely not implemented
00065   void operator=(const Self &); //purposely not implemented
00066 };
00067 } // end namespace itk
00068 
00069 #endif
00070