ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
Optimizers
include
itkLevenbergMarquardtOptimizer.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 __itkLevenbergMarquardtOptimizer_h
19
#define __itkLevenbergMarquardtOptimizer_h
20
21
#include "
itkMultipleValuedNonLinearVnlOptimizer.h
"
22
#include "vnl/algo/vnl_levenberg_marquardt.h"
23
24
namespace
itk
25
{
32
class
ITK_EXPORT
LevenbergMarquardtOptimizer
:
33
public
MultipleValuedNonLinearVnlOptimizer
34
{
35
public
:
37
typedef
LevenbergMarquardtOptimizer
Self
;
38
typedef
MultipleValuedNonLinearVnlOptimizer
Superclass
;
39
typedef
SmartPointer< Self >
Pointer
;
40
typedef
SmartPointer< const Self >
ConstPointer
;
41
43
itkNewMacro(
Self
);
44
46
itkTypeMacro(
LevenbergMarquardtOptimizer
,
MultipleValuedNonLinearVnlOptimizer
);
47
49
typedef
vnl_vector< double >
InternalParametersType
;
50
52
typedef
vnl_levenberg_marquardt
InternalOptimizerType
;
53
55
vnl_levenberg_marquardt * GetOptimizer(
void
)
const
;
56
58
void
StartOptimization(
void
);
59
61
virtual
void
SetCostFunction(
MultipleValuedCostFunction
*costFunction);
62
63
void
SetNumberOfIterations(
unsigned
int
iterations);
64
65
void
SetValueTolerance(
double
tol);
66
67
void
SetGradientTolerance(
double
tol);
68
69
void
SetEpsilonFunction(
double
epsilon);
70
72
MeasureType
GetValue()
const
;
73
74
const
std::string GetStopConditionDescription()
const
;
75
76
protected
:
77
LevenbergMarquardtOptimizer
();
78
virtual
~
LevenbergMarquardtOptimizer
();
79
80
typedef
Superclass::CostFunctionAdaptorType
CostFunctionAdaptorType
;
81
82
private
:
83
LevenbergMarquardtOptimizer
(
const
Self
&);
//purposely not implemented
84
void
operator=(
const
Self
&);
//purposely not implemented
85
86
bool
m_OptimizerInitialized
;
87
InternalOptimizerType
*
m_VnlOptimizer
;
88
unsigned
int
m_NumberOfIterations
;
89
double
m_ValueTolerance
;
90
double
m_GradientTolerance
;
91
double
m_EpsilonFunction
;
92
};
93
}
// end namespace itk
94
95
#endif
96
Generated on Sun Dec 9 2012 01:17:52 for ITK by
1.8.2