Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkFullSearchOptimizer.h>
An optimizer based on full search.
Optimizer that scans a subspace of the parameter space and searches for the best parameters.
Definition at line 46 of file itkFullSearchOptimizer.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::CostFunctionPointer | CostFunctionPointer |
typedef Superclass::CostFunctionType | CostFunctionType |
typedef Superclass::MeasureType | MeasureType |
typedef Superclass::ParametersType | ParametersType |
typedef ParametersType::ValueType | ParameterValueType |
typedef SmartPointer< Self > | Pointer |
typedef FixedArray< RangeValueType, 3 > | RangeType |
typedef ParameterValueType | RangeValueType |
typedef Array< IndexValueType > | SearchSpaceIndexType |
typedef SearchSpaceType::ConstIterator | SearchSpaceIteratorType |
typedef SearchSpaceType::Pointer | SearchSpacePointer |
typedef Array< ParameterValueType > | SearchSpacePointType |
typedef Array< SizeValueType > | SearchSpaceSizeType |
typedef MapContainer< unsigned int, RangeType > | SearchSpaceType |
typedef FullSearchOptimizer | Self |
enum | StopConditionType { FullRangeSearched , MetricError } |
typedef SingleValuedNonLinearOptimizer | Superclass |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
FullSearchOptimizer () | |
virtual void | ProcessSearchSpaceChanges (void) |
~FullSearchOptimizer () override | |
Private Member Functions | |
FullSearchOptimizer (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
unsigned long | m_CurrentIteration |
typedef SmartPointer< const Self > itk::FullSearchOptimizer::ConstPointer |
Definition at line 54 of file itkFullSearchOptimizer.h.
typedef Superclass::CostFunctionPointer itk::FullSearchOptimizer::CostFunctionPointer |
Definition at line 71 of file itkFullSearchOptimizer.h.
typedef Superclass::CostFunctionType itk::FullSearchOptimizer::CostFunctionType |
Definition at line 70 of file itkFullSearchOptimizer.h.
typedef Superclass::MeasureType itk::FullSearchOptimizer::MeasureType |
Definition at line 72 of file itkFullSearchOptimizer.h.
typedef Superclass::ParametersType itk::FullSearchOptimizer::ParametersType |
Definition at line 69 of file itkFullSearchOptimizer.h.
typedef ParametersType::ValueType itk::FullSearchOptimizer::ParameterValueType |
Definition at line 74 of file itkFullSearchOptimizer.h.
typedef SmartPointer< Self > itk::FullSearchOptimizer::Pointer |
Definition at line 53 of file itkFullSearchOptimizer.h.
typedef FixedArray< RangeValueType, 3 > itk::FullSearchOptimizer::RangeType |
Definition at line 76 of file itkFullSearchOptimizer.h.
Definition at line 75 of file itkFullSearchOptimizer.h.
typedef Array< IndexValueType > itk::FullSearchOptimizer::SearchSpaceIndexType |
The same values, but transformed to integer indices. These can be used to create an image visualizing the search space.
Definition at line 87 of file itkFullSearchOptimizer.h.
typedef SearchSpaceType::ConstIterator itk::FullSearchOptimizer::SearchSpaceIteratorType |
Definition at line 79 of file itkFullSearchOptimizer.h.
typedef SearchSpaceType::Pointer itk::FullSearchOptimizer::SearchSpacePointer |
Definition at line 78 of file itkFullSearchOptimizer.h.
typedef Array< ParameterValueType > itk::FullSearchOptimizer::SearchSpacePointType |
Type that stores the parameter values of the parameters to be optimized. Updated every iteration.
Definition at line 83 of file itkFullSearchOptimizer.h.
typedef Array< SizeValueType > itk::FullSearchOptimizer::SearchSpaceSizeType |
The size of each dimension to be searched ((max-min)/step))
Definition at line 90 of file itkFullSearchOptimizer.h.
typedef MapContainer< unsigned int, RangeType > itk::FullSearchOptimizer::SearchSpaceType |
Definition at line 77 of file itkFullSearchOptimizer.h.
Standard class typedefs.
Definition at line 51 of file itkFullSearchOptimizer.h.
Definition at line 52 of file itkFullSearchOptimizer.h.
Codes of stopping conditions
Enumerator | |
---|---|
FullRangeSearched | |
MetricError |
Definition at line 63 of file itkFullSearchOptimizer.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 197 of file itkFullSearchOptimizer.h.
|
private |
|
virtual |
Add/Remove a dimension to/from the SearchSpace
|
virtual |
|
virtual |
Get the point in SearchSpace that is currently the most optimal
|
virtual |
Get the best value.
|
virtual |
Run-time type information (and related methods).
Reimplemented in elastix::FullSearch< TElastix >.
|
virtual |
|
virtual |
Get the current iteration number.
|
virtual |
Get the point in SearchSpace that is currently evaluated
|
virtual |
NB: The methods SetScales has no influence! Methods to configure the cost function.
|
inline |
Definition at line 98 of file itkFullSearchOptimizer.h.
|
virtual |
Get the total number of iterations = sizes[0]*sizes[1]*sizes[2]* etc.....
|
virtual |
Get the Dimension of the SearchSpace. Calculated from the SearchSpace.
|
virtual |
Returns an array containing trunc((max-min)/step) for each SearchSpaceDimension)
|
virtual |
Get Stop condition.
|
virtual |
Get the current value.
|
virtual |
Convert an index to a point
|
virtual |
itk::FullSearchOptimizer::itkGetModifiableObjectMacro | ( | SearchSpace | , |
SearchSpaceType | |||
) |
|
virtual |
|
virtual |
|
inline |
Definition at line 104 of file itkFullSearchOptimizer.h.
|
inline |
Definition at line 102 of file itkFullSearchOptimizer.h.
|
static |
Method for creation through the object factory.
|
private |
|
virtual |
Convert an index to a full parameter array. Requires a valid InitialPosition!
|
protectedvirtual |
|
virtual |
|
virtual |
Resume previously stopped optimization with current parameters
|
virtual |
|
inline |
Definition at line 100 of file itkFullSearchOptimizer.h.
|
virtual |
Set/Get the SearchSpace, which is defined by a pointer to an itkMapContainer<unsigned int, FixedArray(double,3)> The unsigned int is the number of a parameter to be investigated. The FixedArray contains its range and the resolution of the search (min, max, step).
Instead of using this function, the Add/RemoveSearchDimension methods can be used, to define a search space.
|
override |
Start optimization. Make sure to set the initial position before starting the optimization
|
virtual |
Stop optimization.
|
virtual |
Set the CurrentPosition, CurrentPoint and CurrentIndex to the next point in the search space.
example of sequence of indices in a 3d search space:
dim1: 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 dim2: 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 dim3: 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
The indices are transformed to points in search space with the formula: point[i] = min[i] + stepsize[i]*index[i] for all i.
Then the appropriate parameters in the ParameterArray are updated.
|
protected |
Definition at line 211 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 210 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 204 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 209 of file itkFullSearchOptimizer.h.
|
private |
Definition at line 223 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 208 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 215 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 201 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 213 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 207 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 212 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 202 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 205 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 203 of file itkFullSearchOptimizer.h.
Generated on 1667476801 for elastix by 1.9.4 |