ITK
6.0.0
Insight Toolkit
|
#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 |
Public Types inherited from itk::Array< TParametersValueType > | |
using | Self = Array |
using | SizeValueType = typename vnl_vector< TParametersValueType >::size_type |
using | ValueType = TParametersValueType |
using | VnlVectorType = vnl_vector< TParametersValueType > |
Public Member Functions | |
OptimizerParametersHelperType * | GetHelper () |
void | Initialize () |
Self & | operator= (const ArrayType &rhs) |
Self & | operator= (const VnlVectorType &rhs) |
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) |
~OptimizerParameters () override=default | |
virtual void | MoveDataPointer (TParametersValueType *pointer) |
virtual void | SetParametersObject (LightObject *object) |
Self & | operator= (const Self &rhs) |
Public Member Functions inherited from itk::Array< TParametersValueType > | |
Array ()=default | |
Array (const Array &) | |
Array (const ValueType *datain, SizeValueType sz) | |
Array (const VnlVectorType &) | |
Array (SizeValueType dimension) | |
Array (SizeValueType dimension, const ValueType &value) | |
Array (ValueType *datain, SizeValueType sz, bool LetArrayManageMemory=false) | |
void | Fill (const TParametersValueType &v) |
const TParametersValueType & | GetElement (SizeValueType i) const |
SizeValueType | GetSize () const |
Self & | operator= (const Self &rhs) |
Self & | operator= (const VnlVectorType &rhs) |
void | SetData (TParametersValueType *datain, SizeValueType sz, bool LetArrayManageMemory=false) |
void | SetDataSameSize (TParametersValueType *datain, bool LetArrayManageMemory=false) |
void | SetElement (SizeValueType i, const TParametersValueType &value) |
void | SetSize (SizeValueType sz) |
void | Swap (Array &other) noexcept |
~Array () override | |
Array (const Array< TArrayValue > &r) | |
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 149 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 |
Definition at line 170 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 160 of file itkOptimizerParameters.h.
|
inline |
Definition at line 178 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 142 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 125 of file itkOptimizerParameters.h.
|
private |
Definition at line 188 of file itkOptimizerParameters.h.