ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkOptimizerParameters.h>
Class to hold and manage different parameter types used during optimization.
Definition at line 34 of file itkOptimizerParameters.h.
Public Types | |
typedef Superclass | ArrayType |
typedef OptimizerParametersHelper < TParametersValueType > | OptimizerParametersHelperType |
typedef OptimizerParameters | Self |
typedef Superclass::SizeValueType | SizeValueType |
typedef Array < TParametersValueType > | Superclass |
typedef TParametersValueType | ValueType |
typedef Superclass::VnlVectorType | VnlVectorType |
Public Types inherited from itk::Array< TParametersValueType > | |
typedef Array | Self |
typedef vnl_vector < TParametersValueType > ::size_type | SizeValueType |
typedef TParametersValueType | ValueType |
typedef vnl_vector < TParametersValueType > | VnlVectorType |
Public Member Functions | |
OptimizerParametersHelperType * | GetHelper () |
void | Initialize () |
virtual void | MoveDataPointer (TParametersValueType *pointer) |
const Self & | operator= (const Self &rhs) |
const Self & | operator= (const ArrayType &rhs) |
const Self & | operator= (const VnlVectorType &rhs) |
OptimizerParameters () | |
OptimizerParameters (const OptimizerParameters &rhs) | |
OptimizerParameters (SizeValueType dimension) | |
OptimizerParameters (const ArrayType &array) | |
virtual void | SetHelper (OptimizerParametersHelperType *helper) |
virtual void | SetParametersObject (LightObject *object) |
virtual | ~OptimizerParameters () |
Public Member Functions inherited from itk::Array< TParametersValueType > | |
Array () | |
Array (const Array &) | |
Array (SizeValueType dimension) | |
Array (ValueType *data, SizeValueType sz, bool LetArrayManageMemory=false) | |
Array (const ValueType *data, SizeValueType sz, bool LetArrayManageMemory=false) | |
void | Fill (TParametersValueTypeconst &v) |
const TParametersValueType & | GetElement (SizeValueType i) const |
SizeValueType | GetSize (void) const |
const Self & | operator= (const Self &rhs) |
const Self & | operator= (const VnlVectorType &rhs) |
void | SetData (TParametersValueType *data, SizeValueType sz, bool LetArrayManageMemory=false) |
void | SetDataSameSize (TParametersValueType *data, bool LetArrayManageMemory=false) |
void | SetElement (SizeValueType i, const TParametersValueType &value) |
void | SetSize (SizeValueType sz) |
void | swap (Array &other) |
void | Swap (Array &other) |
~Array () | |
Array (const Array< TArrayValue > &r) | |
SizeValueType | Size (void) const |
unsigned int | GetNumberOfElements (void) const |
Private Attributes | |
OptimizerParametersHelperType * | m_Helper |
typedef Superclass itk::OptimizerParameters< TParametersValueType >::ArrayType |
Definition at line 42 of file itkOptimizerParameters.h.
typedef OptimizerParametersHelper<TParametersValueType> itk::OptimizerParameters< TParametersValueType >::OptimizerParametersHelperType |
Helper class for managing different types of parameter data.
Definition at line 48 of file itkOptimizerParameters.h.
typedef OptimizerParameters itk::OptimizerParameters< TParametersValueType >::Self |
Definition at line 40 of file itkOptimizerParameters.h.
typedef Superclass::SizeValueType itk::OptimizerParameters< TParametersValueType >::SizeValueType |
Definition at line 44 of file itkOptimizerParameters.h.
typedef Array<TParametersValueType> itk::OptimizerParameters< TParametersValueType >::Superclass |
Definition at line 41 of file itkOptimizerParameters.h.
typedef TParametersValueType itk::OptimizerParameters< TParametersValueType >::ValueType |
The element type stored at each location in the Array.
Definition at line 39 of file itkOptimizerParameters.h.
typedef Superclass::VnlVectorType itk::OptimizerParameters< TParametersValueType >::VnlVectorType |
Definition at line 43 of file itkOptimizerParameters.h.
itk::OptimizerParameters< TParametersValueType >::OptimizerParameters | ( | ) |
Default constructor. It is created with an empty array it has to be allocated later by assignment
itk::OptimizerParameters< TParametersValueType >::OptimizerParameters | ( | const OptimizerParameters< TParametersValueType > & | rhs | ) |
Copy constructor. Uses VNL copy construtor 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.
|
explicit |
Constructor with size. Size can only be changed by assignment
itk::OptimizerParameters< TParametersValueType >::OptimizerParameters | ( | const ArrayType & | array | ) |
Constructor with Array assignment
|
virtual |
|
inline |
Get the helper in use.
Definition at line 91 of file itkOptimizerParameters.h.
void itk::OptimizerParameters< TParametersValueType >::Initialize | ( | ) |
Initialize. Initialization called by constructors.
|
virtual |
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.
const Self& itk::OptimizerParameters< TParametersValueType >::operator= | ( | const Self & | rhs | ) |
Copy opertors
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?
const Self& itk::OptimizerParameters< TParametersValueType >::operator= | ( | const ArrayType & | rhs | ) |
const Self& itk::OptimizerParameters< TParametersValueType >::operator= | ( | const VnlVectorType & | rhs | ) |
|
virtual |
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.
|
virtual |
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.
|
private |
Definition at line 108 of file itkOptimizerParameters.h.