ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkSingleValuedCostFunctionv4.h>
This class is a base for a CostFunction that returns a single value.
This class differs from the SingleValuedCostFunction in that it is fine tunned for managing very large numbers of parameters. For example, to be used in conditions where the number of parameters is in the range of thousands or even millions. Due to the large number of parameters, the API of this class avoids any copying of the parameters array, and of the classes that have dimensionality related to the size of the parameters array.
As you look at the code of this class, keep in mind that the types ParametersType and DerivativeType will be some sort of array-like type with millions of elements.
Derived classes must provide implementations for: GetValue GetValueAndDerivative
Definition at line 49 of file itkSingleValuedCostFunctionv4.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Array < TInternalComputationValueType > | DerivativeType |
typedef TInternalComputationValueType | MeasureType |
typedef Superclass::ParametersType | ParametersType |
typedef SmartPointer< Self > | Pointer |
typedef SingleValuedCostFunctionv4Template | Self |
typedef CostFunctionTemplate < TInternalComputationValueType > | Superclass |
Public Types inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef OptimizerParameters < TInternalComputationValueType > | ParametersType |
typedef TInternalComputationValueType | ParametersValueType |
typedef SmartPointer< Self > | Pointer |
typedef CostFunctionTemplate | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
virtual MeasureType | GetValue () const =0 |
virtual void | GetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const =0 |
Public Member Functions inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
virtual unsigned int | GetNumberOfParameters (void) const =0 |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) override |
virtual void | UnRegister () const noexceptoverride |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
SingleValuedCostFunctionv4Template () | |
virtual | ~SingleValuedCostFunctionv4Template () override |
Protected Member Functions inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
CostFunctionTemplate () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual | ~CostFunctionTemplate () override |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () override |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::ConstPointer |
Definition at line 57 of file itkSingleValuedCostFunctionv4.h.
typedef Array< TInternalComputationValueType > itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::DerivativeType |
DerivativeType typedef. It defines a type used to return the cost function derivative.
Definition at line 72 of file itkSingleValuedCostFunctionv4.h.
typedef TInternalComputationValueType itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::MeasureType |
MeasureType typedef. It defines a type used to return the cost function value.
Definition at line 60 of file itkSingleValuedCostFunctionv4.h.
typedef Superclass::ParametersType itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::ParametersType |
ParametersType typedef. It defines a position in the optimization search space.
Definition at line 68 of file itkSingleValuedCostFunctionv4.h.
typedef SmartPointer< Self > itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::Pointer |
Definition at line 56 of file itkSingleValuedCostFunctionv4.h.
typedef SingleValuedCostFunctionv4Template itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::Self |
Standard class typedefs.
Definition at line 54 of file itkSingleValuedCostFunctionv4.h.
typedef CostFunctionTemplate< TInternalComputationValueType > itk::SingleValuedCostFunctionv4Template< TInternalComputationValueType >::Superclass |
Definition at line 55 of file itkSingleValuedCostFunctionv4.h.
|
inlineprotected |
Definition at line 85 of file itkSingleValuedCostFunctionv4.h.
|
inlineoverrideprotectedvirtual |
Definition at line 86 of file itkSingleValuedCostFunctionv4.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::CostFunctionTemplate< TInternalComputationValueType >.
Reimplemented in itk::ImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::MattesMutualInformationImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::ANTSNeighborhoodCorrelationImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::ObjectToObjectMultiMetricv4< TFixedDimension, TMovingDimension, TVirtualImage, TInternalComputationValueType >, itk::ObjectToObjectMetric< TFixedDimension, TMovingDimension, TVirtualImage, TParametersValueType >, itk::ObjectToObjectMetric< TFixedDimension, TMovingDimension, TVirtualImage, TInternalComputationValueType >, itk::ObjectToObjectMetric< TFixedImage::ImageDimension, TMovingImage::ImageDimension, TVirtualImage, TInternalComputationValueType >, itk::ObjectToObjectMetric< TPointSet::PointDimension, TPointSet::PointDimension, Image< TInternalComputationValueType, TPointSet::PointDimension >, TInternalComputationValueType >, itk::ObjectToObjectMetric< TFixedPointSet::PointDimension, TMovingPointSet::PointDimension, Image< TInternalComputationValueType, TFixedPointSet::PointDimension >, TInternalComputationValueType >, itk::CorrelationImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::PointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType >, itk::PointSetToPointSetMetricv4< TPointSet, TPointSet, TInternalComputationValueType >, itk::JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4< TPointSet, TInternalComputationValueType >, itk::DemonsImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::LabeledPointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType >, itk::JointHistogramMutualInformationImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::ObjectToObjectMetricBaseTemplate< TInternalComputationValueType >, itk::ExpectationBasedPointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType >, itk::ObjectToObjectMetricBaseTemplate< TParametersValueType >, itk::EuclideanDistancePointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType >, and itk::MeanSquaresImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >.
|
pure virtual |
This method returns the value of the cost function corresponding to the specified parameters.
Implemented in itk::ImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::PointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType >, itk::PointSetToPointSetMetricv4< TPointSet, TPointSet, TInternalComputationValueType >, itk::ObjectToObjectMultiMetricv4< TFixedDimension, TMovingDimension, TVirtualImage, TInternalComputationValueType >, itk::JointHistogramMutualInformationImageToImageMetricv4< TFixedImage, TMovingImage, TVirtualImage, TInternalComputationValueType, TMetricTraits >, itk::ObjectToObjectMetricBaseTemplate< TInternalComputationValueType >, and itk::ObjectToObjectMetricBaseTemplate< TParametersValueType >.
|
pure virtual |
This method returns the value and derivative of the cost function. derivative
will be sized and allocated as needed by metric. If it's already proper size, no new allocation is done.