#include <itkSingleValuedCostFunction.h>
This class is a base for the CostFunctions returning a single value.
Definition at line 34 of file itkSingleValuedCostFunction.h.
Public Types | |
using | ConstPointer = SmartPointer<const Self> |
using | DerivativeType = Array<ParametersValueType> |
using | MeasureType = double |
using | ParametersType = Superclass::ParametersType |
using | ParametersValueType = Superclass::ParametersValueType |
using | Pointer = SmartPointer<Self> |
using | Self = SingleValuedCostFunction |
using | Superclass = CostFunction |
![]() | |
using | ConstPointer |
using | ParametersType |
using | ParametersValueType |
using | Pointer |
using | Self |
using | Superclass |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | Pointer = SmartPointer<Self> |
using | Self = Object |
using | Superclass = LightObject |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | Pointer = SmartPointer<Self> |
using | Self = LightObject |
Public Member Functions | |
virtual void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const =0 |
const char * | GetNameOfClass () const override |
virtual MeasureType | GetValue (const ParametersType ¶meters) const =0 |
virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
![]() | |
virtual unsigned int | GetNumberOfParameters () const=0 |
virtual unsigned int | GetNumberOfParameters () const=0 |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
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 |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
SingleValuedCostFunction ()=default | |
~SingleValuedCostFunction () override | |
![]() | |
CostFunctionTemplate ()=default | |
CostFunctionTemplate ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~CostFunctionTemplate () override=default | |
~CostFunctionTemplate () override=default | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
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 bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::SingleValuedCostFunction::ConstPointer = SmartPointer<const Self> |
Definition at line 43 of file itkSingleValuedCostFunction.h.
DerivativeType type alias. It defines a type used to return the cost function derivative.
Definition at line 59 of file itkSingleValuedCostFunction.h.
using itk::SingleValuedCostFunction::MeasureType = double |
MeasureType type alias. It defines a type used to return the cost function value.
Definition at line 50 of file itkSingleValuedCostFunction.h.
ParametersType type alias. It defines a position in the optimization search space.
Definition at line 54 of file itkSingleValuedCostFunction.h.
Definition at line 55 of file itkSingleValuedCostFunction.h.
Definition at line 42 of file itkSingleValuedCostFunction.h.
Standard class type aliases.
Definition at line 40 of file itkSingleValuedCostFunction.h.
Definition at line 41 of file itkSingleValuedCostFunction.h.
|
protecteddefault |
Referenced by GetNameOfClass().
|
overrideprotected |
|
pure virtual |
This method returns the derivative of the cost function corresponding to the specified parameters.
Implemented in itk::MattesMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::MRIBiasEnergyFunction< TImage, TImageMask, TBiasField >, itk::MRIBiasEnergyFunction< InternalImageType, ImageMaskType, BiasFieldType >, itk::MRIBiasEnergyFunction< InternalImageType, ImageMaskType, BiasFieldType >, itk::MutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >, itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixelType >, and itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixelType >.
|
overridevirtual |
Reimplemented from itk::CostFunctionTemplate< double >.
References SingleValuedCostFunction().
|
pure virtual |
This method returns the value of the cost function corresponding to the specified parameters.
Implemented in itk::MattesMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::MRIBiasEnergyFunction< TImage, TImageMask, TBiasField >, itk::MRIBiasEnergyFunction< InternalImageType, ImageMaskType, BiasFieldType >, itk::MRIBiasEnergyFunction< InternalImageType, ImageMaskType, BiasFieldType >, itk::MutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >, itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixelType >, and itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixelType >.
|
virtual |
This method returns the value and derivative of the cost function corresponding to the specified parameters
Reimplemented in itk::ImageToSpatialObjectMetric< TFixedImage, TMovingSpatialObject >, itk::ImageToSpatialObjectMetric< FixedImageType, MovingSpatialObjectType >, itk::ImageToSpatialObjectMetric< FixedImageType, MovingSpatialObjectType >, itk::MattesMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationImageToImageMetric< TFixedImage, TMovingImage >.