Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxConjugateGradientFRPR.h>
The ConjugateGradientFRPR class.
This component is based on the itkFRPROptimizer. This is a Fletcher-Reeves conjugate gradient optimizer, in combination with an exact (dBrent) line search, based on the description in Numerical Recipes in C++
This optimizer support the NewSamplesEveryIteration option. It requests new samples upon every derivative evaluation, but actually this makes no sense for a conjugate gradient optimizer. So, think twice before using it.
Optimizer: Select this optimizer as follows:
(Optimizer "ConjugateGradientFRPR")
MaximumNumberOfIterations: The maximum number of iterations in each resolution.
example: (MaximumNumberOfIterations 100 100 50)
Default value: 100.
MaximumNumberOfLineSearchIterations: The maximum number of iterations in each resolution.
example: (MaximumNumberOfIterations 10 10 5)
Default value: 10.
StepLength: Set the length of the initial step tried by the line seach, used to bracket the minimum.
example: (StepLength 2.0 1.0 0.5)
Default value: 1.0.
ValueTolerance: Convergence is declared if:
example: (ValueTolerance 0.001 0.00001 0.000001)
Default value: 0.00001.
where:
= current mininum of the gain
= current brackets around the minimum
example: (LineSearchStepTolerance 0.001 0.00001 0.000001)
Default value: 0.00001.
Definition at line 74 of file elxConjugateGradientFRPR.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from elastix::BaseComponent | |
static std::string | ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision) |
static void | InitializeElastixExecutable () |
static bool | IsElastixLibrary () |
Protected Attributes | |
double | m_CurrentDerivativeMagnitude |
double | m_CurrentSearchDirectionMagnitude |
double | m_CurrentStepLength |
Protected Attributes inherited from elastix::BaseComponentSE< TElastix > | |
ConfigurationPointer | m_Configuration {} |
ElastixPointer | m_Elastix {} |
RegistrationPointer | m_Registration {} |
Private Member Functions | |
ConjugateGradientFRPR (const Self &) | |
const char * | DeterminePhase (void) const |
void | operator= (const Self &) |
Private Attributes | |
bool | m_LineBracketing |
bool | m_LineOptimizing |
typedef Superclass2::ConfigurationPointer elastix::ConjugateGradientFRPR< TElastix >::ConfigurationPointer |
Definition at line 110 of file elxConjugateGradientFRPR.h.
typedef Superclass2::ConfigurationType elastix::ConjugateGradientFRPR< TElastix >::ConfigurationType |
Definition at line 109 of file elxConjugateGradientFRPR.h.
typedef itk::SmartPointer< const Self > elastix::ConjugateGradientFRPR< TElastix >::ConstPointer |
Definition at line 87 of file elxConjugateGradientFRPR.h.
typedef Superclass1::CostFunctionPointer elastix::ConjugateGradientFRPR< TElastix >::CostFunctionPointer |
Definition at line 100 of file elxConjugateGradientFRPR.h.
typedef Superclass1::CostFunctionType elastix::ConjugateGradientFRPR< TElastix >::CostFunctionType |
Typedef's inherited from Superclass1.
Definition at line 99 of file elxConjugateGradientFRPR.h.
typedef SingleValuedNonLinearOptimizer::DerivativeType elastix::ConjugateGradientFRPR< TElastix >::DerivativeType |
Definition at line 104 of file elxConjugateGradientFRPR.h.
typedef Superclass2::ElastixPointer elastix::ConjugateGradientFRPR< TElastix >::ElastixPointer |
Definition at line 108 of file elxConjugateGradientFRPR.h.
typedef Superclass2::ElastixType elastix::ConjugateGradientFRPR< TElastix >::ElastixType |
Typedef's inherited from Elastix.
Definition at line 107 of file elxConjugateGradientFRPR.h.
typedef Superclass2::ITKBaseType elastix::ConjugateGradientFRPR< TElastix >::ITKBaseType |
Definition at line 113 of file elxConjugateGradientFRPR.h.
typedef Superclass1::ParametersType elastix::ConjugateGradientFRPR< TElastix >::ParametersType |
Definition at line 102 of file elxConjugateGradientFRPR.h.
typedef itk::SmartPointer< Self > elastix::ConjugateGradientFRPR< TElastix >::Pointer |
Definition at line 86 of file elxConjugateGradientFRPR.h.
typedef Superclass2::RegistrationPointer elastix::ConjugateGradientFRPR< TElastix >::RegistrationPointer |
Definition at line 112 of file elxConjugateGradientFRPR.h.
typedef Superclass2::RegistrationType elastix::ConjugateGradientFRPR< TElastix >::RegistrationType |
Definition at line 111 of file elxConjugateGradientFRPR.h.
typedef ConjugateGradientFRPR elastix::ConjugateGradientFRPR< TElastix >::Self |
Standard ITK.
Definition at line 83 of file elxConjugateGradientFRPR.h.
typedef itk::FRPROptimizer elastix::ConjugateGradientFRPR< TElastix >::Superclass1 |
Definition at line 84 of file elxConjugateGradientFRPR.h.
typedef OptimizerBase< TElastix > elastix::ConjugateGradientFRPR< TElastix >::Superclass2 |
Definition at line 85 of file elxConjugateGradientFRPR.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 147 of file elxConjugateGradientFRPR.h.
|
private |
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Methods to set parameters and print output at different stages in the registration process.
Reimplemented from elastix::BaseComponent.
|
overrideprotected |
Given a bracketing triple of points and their function values, returns a bounded extreme. These values are in parameter space, along the current line and wrt the current origin set via SetLine. Optimization terminates based on MaximumIteration, StepTolerance, or ValueTolerance. Implemented as Brent line optimers from NRC.
This implementation sets the LineOptimizing flag to 'true', calls the the superclass's implementation, stores extX as the current step length, and sets the LineOptimizing flag to 'false' again.
|
private |
elastix::ConjugateGradientFRPR< TElastix >::elxClassNameMacro | ( | "ConjugateGradientFRPR< TElastix >" | ) |
Name of this class.
|
virtual |
Run-time type information (and related methods).
Reimplemented from elastix::OptimizerBase< TElastix >.
|
virtual |
Return the magnitude of the cached derivative
|
virtual |
Get the magnitude of the line search direction
|
virtual |
Get the current gain
|
virtual |
|
virtual |
Check if the optimizer is currently Bracketing the minimum, or is optimizing along a line
|
protectedvirtual |
Get the value of the n-dimensional cost function at this scalar step distance along the current line direction from the current line origin. Line origin and distances are set via SetLine.
This implementation calls the Superclass' implementation and caches the computed derivative's magnitude. Besides, it invokes the SelectNewSamples method.
|
overrideprotected |
The LineBracket routine from NRC. Uses current origin and line direction (from SetLine) to find a triple of points (ax, bx, cx) that bracket the extreme "near" the origin. Search first considers the point StepLength distance from ax. IMPORTANT: The value of ax and the value of the function at ax (i.e., fa), must both be provided to this function.
This implementation sets the LineBracketing flag to 'true', calls the superclass' implementation, stores bx as the current step length, invokes an iteration event, and sets the LineBracketing flag to 'false'
|
protectedvirtual |
store the line search direction's (xi) magnitude and call the superclass' implementation.
|
static |
Method for creation through the object factory.
|
private |
|
override |
Override the SetInitialPosition.
|
protectedvirtual |
|
protectedvirtual |
Set if the optimizer is currently bracketing the minimum, or is optimizing along a line
|
protected |
To store the latest computed derivative's magnitude
Definition at line 150 of file elxConjugateGradientFRPR.h.
|
protected |
Variable to store the line search direction magnitude
Definition at line 153 of file elxConjugateGradientFRPR.h.
|
protected |
the current gain
Definition at line 156 of file elxConjugateGradientFRPR.h.
|
private |
Definition at line 212 of file elxConjugateGradientFRPR.h.
|
private |
Definition at line 211 of file elxConjugateGradientFRPR.h.
Generated on 1667476801 for elastix by 1.9.4 |