#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 | |
using | ConstPointer = SmartPointer<const Self> |
using | ParameterValueType = ParametersType::ValueType |
using | Pointer = SmartPointer<Self> |
using | RangeType = FixedArray<RangeValueType, 3> |
using | RangeValueType = ParameterValueType |
using | SearchSpaceIndexType = Array<IndexValueType> |
using | SearchSpaceIteratorType = SearchSpaceType::ConstIterator |
using | SearchSpacePointer = SearchSpaceType::Pointer |
using | SearchSpacePointType = Array<ParameterValueType> |
using | SearchSpaceSizeType = Array<SizeValueType> |
using | SearchSpaceType = MapContainer<unsigned int, RangeType> |
using | Self = FullSearchOptimizer |
enum | StopConditionType { FullRangeSearched , MetricError } |
using | Superclass = SingleValuedNonLinearOptimizer |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
FullSearchOptimizer () | |
virtual void | ProcessSearchSpaceChanges () |
~FullSearchOptimizer () override=default | |
Protected Attributes | |
SearchSpaceIndexType | m_BestIndexInSearchSpace {} |
SearchSpacePointType | m_BestPointInSearchSpace {} |
double | m_BestValue { 0.0 } |
SearchSpaceIndexType | m_CurrentIndexInSearchSpace {} |
SearchSpacePointType | m_CurrentPointInSearchSpace {} |
unsigned long | m_LastSearchSpaceChanges { 0 } |
bool | m_Maximize { false } |
unsigned int | m_NumberOfSearchSpaceDimensions { 0 } |
SearchSpacePointer | m_SearchSpace { nullptr } |
SearchSpaceSizeType | m_SearchSpaceSize {} |
bool | m_Stop { false } |
StopConditionType | m_StopCondition { FullRangeSearched } |
double | m_Value { 0.0 } |
Private Attributes | |
unsigned long | m_CurrentIteration { 0 } |
using itk::FullSearchOptimizer::ConstPointer = SmartPointer<const Self> |
Definition at line 55 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::ParameterValueType = ParametersType::ValueType |
Definition at line 76 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::Pointer = SmartPointer<Self> |
Definition at line 54 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::RangeType = FixedArray<RangeValueType, 3> |
Definition at line 78 of file itkFullSearchOptimizer.h.
Definition at line 77 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::SearchSpaceIndexType = Array<IndexValueType> |
The same values, but transformed to integer indices. These can be used to create an image visualizing the search space.
Definition at line 89 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::SearchSpaceIteratorType = SearchSpaceType::ConstIterator |
Definition at line 81 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::SearchSpacePointer = SearchSpaceType::Pointer |
Definition at line 80 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::SearchSpacePointType = Array<ParameterValueType> |
Type that stores the parameter values of the parameters to be optimized. Updated every iteration.
Definition at line 85 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::SearchSpaceSizeType = Array<SizeValueType> |
The size of each dimension to be searched ((max-min)/step))
Definition at line 92 of file itkFullSearchOptimizer.h.
using itk::FullSearchOptimizer::SearchSpaceType = MapContainer<unsigned int, RangeType> |
Definition at line 79 of file itkFullSearchOptimizer.h.
Standard class typedefs.
Definition at line 52 of file itkFullSearchOptimizer.h.
Definition at line 53 of file itkFullSearchOptimizer.h.
Codes of stopping conditions
Enumerator | |
---|---|
FullRangeSearched | |
MetricError |
Definition at line 64 of file itkFullSearchOptimizer.h.
|
protected |
|
overrideprotecteddefault |
|
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 101 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::ITK_DISALLOW_COPY_AND_MOVE | ( | FullSearchOptimizer | ) |
itk::FullSearchOptimizer::itkGetModifiableObjectMacro | ( | SearchSpace | , |
SearchSpaceType | ) |
|
virtual |
|
virtual |
|
inline |
Definition at line 116 of file itkFullSearchOptimizer.h.
|
inline |
Definition at line 111 of file itkFullSearchOptimizer.h.
|
static |
Method for creation through the object factory.
|
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 106 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 235 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 234 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 228 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 233 of file itkFullSearchOptimizer.h.
|
private |
Definition at line 244 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 232 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 239 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 225 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 237 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 231 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 236 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 226 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 229 of file itkFullSearchOptimizer.h.
|
protected |
Definition at line 227 of file itkFullSearchOptimizer.h.
Generated on 2024-07-17 for elastix by 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) |