ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction Class Reference

#include <itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h>

Detailed Description

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
class itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction

Makes the interpolator into a cost function.

Definition at line 120 of file itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h.

+ Inheritance diagram for itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction:
+ Collaboration diagram for itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction:

Public Types

using DerivativeType = Superclass::DerivativeType
 
using MeasureType = Superclass::MeasureType
 
using ParametersType = Superclass::ParametersType
 
using Pointer = SmartPointer<Self>
 
using Self = OptimizingInterpolationCostFunction
 
using Superclass = CostFunctionType
 

Public Member Functions

virtual::itk::LightObject::Pointer CreateAnother () const
 
void GetDerivative (const ParametersType &parameters, DerivativeType &derivative) const override
 
virtual const InterpolatorType * GetInterpolator () const
 
virtual const char * GetNameOfClass () const
 
unsigned int GetNumberOfParameters () const override
 
MeasureType GetValue (const ParametersType &parameters) const override
 
void Initialize (const ParametersType &parameters)
 
virtual void SetInterpolator (InterpolatorType *_arg)
 

Static Public Member Functions

static Pointer New ()
 

Public Attributes

InterpolatorType::Pointer m_Interpolator
 

Protected Member Functions

 OptimizingInterpolationCostFunction ()
 

Private Attributes

ContinuousIndexType m_ContinuousIndex
 
ContinuousIndexType::ValueType * m_ContinuousIndexPtr
 
ParametersType m_PreviousParameters
 
ParametersType::ValueType * m_PreviousParametersPtr
 

Member Typedef Documentation

◆ DerivativeType

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
using itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::DerivativeType = Superclass::DerivativeType

DerivativeType type alias. It defines a type used to return the cost function derivative.

Definition at line 142 of file itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h.

◆ MeasureType

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
using itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::MeasureType = Superclass::MeasureType

MeasureType type alias. It defines a type used to return the cost function value.

Definition at line 134 of file itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h.

◆ ParametersType

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
using itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::ParametersType = Superclass::ParametersType

ParametersType type alias. It defines a position in the optimization search space.

Definition at line 138 of file itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h.

◆ Pointer

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
using itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::Pointer = SmartPointer<Self>

◆ Self

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
using itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::Self = OptimizingInterpolationCostFunction

◆ Superclass

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
using itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::Superclass = CostFunctionType

Constructor & Destructor Documentation

◆ OptimizingInterpolationCostFunction()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::OptimizingInterpolationCostFunction ( )
protected

Referenced by GetNameOfClass().

Member Function Documentation

◆ CreateAnother()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
virtual::itk::LightObject::Pointer itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::CreateAnother ( ) const

◆ GetDerivative()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
void itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::GetDerivative ( const ParametersType & parameters,
DerivativeType & derivative ) const
override

This method returns the derivative of the cost function corresponding to the specified parameters.

◆ GetInterpolator()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
virtual const InterpolatorType * itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::GetInterpolator ( ) const
virtual

◆ GetNameOfClass()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
virtual const char * itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::GetNameOfClass ( ) const
virtual

◆ GetNumberOfParameters()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
unsigned int itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::GetNumberOfParameters ( ) const
inlineoverride

Return the number of parameters required to compute this cost function. This method MUST be overloaded by derived classes.

Definition at line 158 of file itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h.

References itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::ImageDimension.

◆ GetValue()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
MeasureType itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::GetValue ( const ParametersType & parameters) const
override

This method returns the value of the cost function corresponding to the specified parameters.

◆ Initialize()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
void itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::Initialize ( const ParametersType & parameters)
inline

Set the previous parameters before the start of optimization. Used for calculating the step length in GetDerivative().

Definition at line 166 of file itkBlockMatchingOptimizingInterpolationDisplacementCalculator.h.

References m_PreviousParameters, and m_PreviousParametersPtr.

◆ New()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
static Pointer itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::New ( )
static

◆ SetInterpolator()

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
virtual void itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::SetInterpolator ( InterpolatorType * _arg)
virtual

Member Data Documentation

◆ m_ContinuousIndex

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
ContinuousIndexType itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::m_ContinuousIndex
private

◆ m_ContinuousIndexPtr

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
ContinuousIndexType::ValueType* itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::m_ContinuousIndexPtr
private

◆ m_Interpolator

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
InterpolatorType::Pointer itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::m_Interpolator

◆ m_PreviousParameters

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
ParametersType itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::m_PreviousParameters
private

◆ m_PreviousParametersPtr

template<typename TMetricImage, typename TDisplacementImage, typename TCoordRep = double>
ParametersType::ValueType* itk::BlockMatching::OptimizingInterpolationDisplacementCalculator< TMetricImage, TDisplacementImage, TCoordRep >::OptimizingInterpolationCostFunction::m_PreviousParametersPtr
private

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