ITK  5.4.0
Insight Toolkit
itkCostFunction.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkCostFunction_h
19#define itkCostFunction_h
20
21#include "itkObject.h"
22#include "itkObjectFactory.h"
23#include "itkArray.h"
25
26namespace itk
27{
35template <typename TInternalComputationValueType>
36class ITK_TEMPLATE_EXPORT CostFunctionTemplate : public Object
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(CostFunctionTemplate);
40
46
48 itkOverrideGetNameOfClassMacro(CostFunctionTemplate);
49
52 using ParametersValueType = TInternalComputationValueType;
54
58 virtual unsigned int
60
61protected:
63 ~CostFunctionTemplate() override = default;
64 void
65 PrintSelf(std::ostream & os, Indent indent) const override;
66};
67
70
71} // end namespace itk
72
73#ifndef ITK_MANUAL_INSTANTIATION
74# include "itkCostFunction.hxx"
75#endif
76
77#endif
~CostFunctionTemplate() override=default
virtual unsigned int GetNumberOfParameters() const =0
TInternalComputationValueType ParametersValueType
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Base class for most ITK classes.
Definition: itkObject.h:62
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....