ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkErrorFunctionBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkErrorFunctionBase_h
19 #define itkErrorFunctionBase_h
20 
21 #include "itkFunctionBase.h"
22 #include "itkArray.h"
23 
24 namespace itk
25 {
26 namespace Statistics
27 {
34 template<typename TMeasurementVector, typename TTargetVector>
35 class ErrorFunctionBase : public FunctionBase<TMeasurementVector, TTargetVector>
36 {
37 public:
43 
46 
48  typedef TMeasurementVector ErrorVectorType;
49 
51  typedef TTargetVector OutputType;
52 
54 
55  virtual OutputType Evaluate(const ErrorVectorType&) const ITK_OVERRIDE = 0;
56 
57  virtual InternalVectorType EvaluateDerivative(const ErrorVectorType&) const = 0;
58 
59 protected:
60 
62  ~ErrorFunctionBase() ITK_OVERRIDE {};
63 
64 private:
65 
66  ITK_DISALLOW_COPY_AND_ASSIGN(ErrorFunctionBase);
67 };
68 
69 } // end namespace itk
70 } // end namespace Statistics
71 #endif
SmartPointer< const Self > ConstPointer
This is the itkErrorFunctionBase class.
FunctionBase< TMeasurementVector, TTargetVector > Superclass
Base class for all ITK function objects.
virtual InternalVectorType EvaluateDerivative(const ErrorVectorType &) const =0
virtual OutputType Evaluate(const ErrorVectorType &) const override=0