#include <itkOptimizerParameters.h>
Class to hold and manage different parameter types used during optimization.
Definition at line 36 of file itkOptimizerParameters.h.
Public Types | |
using | ArrayType = Superclass |
using | OptimizerParametersHelperType = OptimizerParametersHelper<TParametersValueType> |
using | Self = OptimizerParameters |
using | Superclass = Array<TParametersValueType> |
using | ValueType = TParametersValueType |
using | VnlVectorType = typename Superclass::VnlVectorType |
![]() | |
using | Self |
using | SizeValueType |
using | ValueType |
using | VnlVectorType |
Public Member Functions | |
OptimizerParametersHelperType * | GetHelper () |
void | Initialize () |
virtual void | MoveDataPointer (TParametersValueType *pointer) |
OptimizerParameters ()=default | |
OptimizerParameters (const ArrayType &array) | |
OptimizerParameters (const OptimizerParameters &rhs) | |
OptimizerParameters (const SizeValueType dimension, const ValueType &value) | |
OptimizerParameters (const ValueType *const inputData, const SizeValueType dimension) | |
OptimizerParameters (SizeValueType dimension) | |
virtual void | SetHelper (OptimizerParametersHelperType *helper) |
virtual void | SetParametersObject (LightObject *object) |
~OptimizerParameters () override=default | |
Self & | operator= (const Self &rhs) |
Self & | operator= (const ArrayType &rhs) |
Self & | operator= (const VnlVectorType &rhs) |
![]() | |
Array ()=default | |
Array ()=default | |
Array (const Array &) | |
Array (const Array &) | |
Array (const Array< TArrayValue > &r) | |
Array (const Array< TArrayValue > &r) | |
Array (const TParametersValueType *datain, SizeValueType sz) | |
Array (const TParametersValueType *datain, SizeValueType sz) | |
Array (const VnlVectorType &) | |
Array (const VnlVectorType &) | |
Array (SizeValueType dimension) | |
Array (SizeValueType dimension) | |
Array (SizeValueType dimension, const ValueType &value) | |
Array (SizeValueType dimension, const ValueType &value) | |
Array (TParametersValueType *datain, SizeValueType sz, bool LetArrayManageMemory=false) | |
Array (TParametersValueType *datain, SizeValueType sz, bool LetArrayManageMemory=false) | |
void | Fill (const TParametersValueType &v) |
void | Fill (const TParametersValueType &v) |
const TParametersValueType & | GetElement (SizeValueType i) const |
const TParametersValueType & | GetElement (SizeValueType i) const |
SizeValueType | GetSize () const |
SizeValueType | GetSize () const |
Self & | operator= (const Self &rhs) |
Self & | operator= (const Self &rhs) |
Self & | operator= (const VnlVectorType &rhs) |
Self & | operator= (const VnlVectorType &rhs) |
void | SetData (TParametersValueType *datain, SizeValueType sz, bool LetArrayManageMemory=false) |
void | SetData (TParametersValueType *datain, SizeValueType sz, bool LetArrayManageMemory=false) |
void | SetDataSameSize (TParametersValueType *datain, bool LetArrayManageMemory=false) |
void | SetDataSameSize (TParametersValueType *datain, bool LetArrayManageMemory=false) |
void | SetElement (SizeValueType i, const TParametersValueType &value) |
void | SetElement (SizeValueType i, const TParametersValueType &value) |
void | SetSize (SizeValueType sz) |
void | SetSize (SizeValueType sz) |
void | Swap (Array &other) noexcept |
void | Swap (Array &other) noexcept |
~Array () override | |
~Array () override | |
SizeValueType | Size () const |
unsigned int | GetNumberOfElements () const |
SizeValueType | Size () const |
unsigned int | GetNumberOfElements () const |
Private Attributes | |
std::unique_ptr< OptimizerParametersHelperType > | m_Helper { std::make_unique<OptimizerParametersHelperType>() } |
using itk::OptimizerParameters< TParametersValueType >::ArrayType = Superclass |
Definition at line 43 of file itkOptimizerParameters.h.
using itk::OptimizerParameters< TParametersValueType >::OptimizerParametersHelperType = OptimizerParametersHelper<TParametersValueType> |
Helper class for managing different types of parameter data.
Definition at line 49 of file itkOptimizerParameters.h.
using itk::OptimizerParameters< TParametersValueType >::Self = OptimizerParameters |
Definition at line 41 of file itkOptimizerParameters.h.
using itk::OptimizerParameters< TParametersValueType >::Superclass = Array<TParametersValueType> |
Definition at line 42 of file itkOptimizerParameters.h.
using itk::OptimizerParameters< TParametersValueType >::ValueType = TParametersValueType |
The element type stored at each location in the Array.
Definition at line 40 of file itkOptimizerParameters.h.
using itk::OptimizerParameters< TParametersValueType >::VnlVectorType = typename Superclass::VnlVectorType |
Definition at line 44 of file itkOptimizerParameters.h.
|
default |
Default constructor. It is created with an empty array it has to be allocated later by assignment
|
inline |
Copy constructor. Uses VNL copy constructor with correct setting for memory management. The vnl vector copy constructor creates new memory no matter the setting of let array manage memory of rhs.
Definition at line 60 of file itkOptimizerParameters.h.
|
inlineexplicit |
Constructor with size. Size can only be changed by assignment.
Definition at line 73 of file itkOptimizerParameters.h.
|
inline |
Constructor with Array assignment
Definition at line 78 of file itkOptimizerParameters.h.
|
inlineexplicit |
Constructor with size and initial value for each element.
Definition at line 83 of file itkOptimizerParameters.h.
|
inlineexplicit |
Constructor with input data and size (number of elements).
Definition at line 89 of file itkOptimizerParameters.h.
|
overridedefault |
|
inline |
Get the helper in use.
Definition at line 147 of file itkOptimizerParameters.h.
|
inline |
Initialize. Initialization called by constructors.
Definition at line 96 of file itkOptimizerParameters.h.
|
inlinevirtual |
Set a new data pointer for the parameter data, pointing it to a different memory block. The size of the new memory block must equal the current size, in elements of TParametersValueType. This call is passed to the assigned OptimizerParametersHelper.
Definition at line 109 of file itkOptimizerParameters.h.
|
inline |
Copy operators
TODO Determine behavior when copying from obj pointing to image parameters. By default should copy image param data into Array portion of new object, i.e. into data_block. Is that what we want?
Definition at line 168 of file itkOptimizerParameters.h.
|
inline |
Copy operators
TODO Determine behavior when copying from obj pointing to image parameters. By default should copy image param data into Array portion of new object, i.e. into data_block. Is that what we want?
Definition at line 159 of file itkOptimizerParameters.h.
|
inline |
Copy operators
TODO Determine behavior when copying from obj pointing to image parameters. By default should copy image param data into Array portion of new object, i.e. into data_block. Is that what we want?
Definition at line 176 of file itkOptimizerParameters.h.
|
inlinevirtual |
Assign a helper. OptimizerParameters manages the helper once its been assigned. The generic helper, OptimizerParametersHelper, is set in constructor. Classes that need a specialized helper should allocate one themselves and assign it with this method.
Definition at line 140 of file itkOptimizerParameters.h.
|
inlinevirtual |
Set an object that holds the parameters. Used by the helper of derived classes that use an object other than itkArray to hold parameter data. The helper class must check that the object is the correct type. The call is passed to the assigned OptimizerParametersHelper.
Definition at line 124 of file itkOptimizerParameters.h.
|
private |
Definition at line 187 of file itkOptimizerParameters.h.