Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ModelFitCostFunctionInterface Class Referenceabstract

Interface class that is implemented by all cost functions used in model fitting. More...

#include <mitkModelFitCostFunctionInterface.h>

Inheritance diagram for mitk::ModelFitCostFunctionInterface:

Public Types

typedef ModelFitCostFunctionInterface Self
 
typedef itk::Array< double > SignalType
 Type representing the observed signal values. More...
 

Public Member Functions

virtual void SetSample (const SignalType &sampleSet)=0
 Sets the observed sample signal that the model will be fitted against. More...
 
virtual void SetModel (const ModelBase *model)=0
 Sets the model instance to be used for cost evaluation. More...
 
virtual const ModelBase * GetModel () const =0
 Returns the model instance currently used for cost evaluation. More...
 

Protected Member Functions

 ModelFitCostFunctionInterface ()
 
virtual ~ModelFitCostFunctionInterface ()
 

Detailed Description

Interface class that is implemented by all cost functions used in model fitting.

This interface defines the common API for cost functions that evaluate how well a model fits observed data. Implementations compute a cost/measure based on the difference between the model signal and the observed sample signal.

See also
SVModelFitCostFunction, MVModelFitCostFunction

Definition at line 32 of file mitkModelFitCostFunctionInterface.h.

Member Typedef Documentation

◆ Self

◆ SignalType

Type representing the observed signal values.

Definition at line 39 of file mitkModelFitCostFunctionInterface.h.

Constructor & Destructor Documentation

◆ ModelFitCostFunctionInterface()

mitk::ModelFitCostFunctionInterface::ModelFitCostFunctionInterface ( )
inlineprotected

Definition at line 61 of file mitkModelFitCostFunctionInterface.h.

◆ ~ModelFitCostFunctionInterface()

virtual mitk::ModelFitCostFunctionInterface::~ModelFitCostFunctionInterface ( )
inlineprotectedvirtual

Definition at line 65 of file mitkModelFitCostFunctionInterface.h.

Member Function Documentation

◆ GetModel()

virtual const ModelBase* mitk::ModelFitCostFunctionInterface::GetModel ( ) const
pure virtual

Returns the model instance currently used for cost evaluation.

Returns
Const pointer to the current model.

◆ SetModel()

virtual void mitk::ModelFitCostFunctionInterface::SetModel ( const ModelBase *  model)
pure virtual

Sets the model instance to be used for cost evaluation.

Parameters
[in]modelPointer to the model to evaluate.

◆ SetSample()

virtual void mitk::ModelFitCostFunctionInterface::SetSample ( const SignalType &  sampleSet)
pure virtual

Sets the observed sample signal that the model will be fitted against.

Parameters
[in]sampleSetThe observed signal values.

Implemented in mitk::SVModelFitCostFunction, and mitk::MVModelFitCostFunction.


The documentation for this class was generated from the following file: