NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar > Class Template Referenceabstract

Implement a gradient descent optimization suitable for FFD and Fluid deformation. More...

Inheritance diagram for itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >:
Inheritance graph
[legend]
Collaboration diagram for itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >:
Collaboration graph
[legend]

Public Types

typedef
LocalSimilarityMeasureGradientDescentOptimizer 
Self
 
typedef
SingleValuedNonLinearOptimizer 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef SimilarityMeasure
< TFixedImage, TMovingImage > 
ImageToImageMetricType
 
typedef const
ImageToImageMetricType
ImageToImageMetricPointer
 
typedef TFixedImage FixedImageType
 
typedef FixedImageType::PixelType FixedImagePixelType
 
typedef FixedImageTypeFixedImagePointer
 
typedef FixedImageType::Pointer FixedImageSmartPointer
 
typedef TMovingImage MovingImageType
 
typedef MovingImageType::PixelType MovingImagePixelType
 
typedef MovingImageTypeMovingImagePointer
 
typedef DeformableTransform
< TFixedImage, TScalarType,
Dimension, TDeformationScalar > 
DeformableTransformType
 
typedef
DeformableTransformType::Pointer 
DeformableTransformPointer
 
typedef double MeasureType
 
typedef
InterpolateImageFunction
< TFixedImage, TScalarType > 
RegriddingInterpolatorType
 
typedef
RegriddingInterpolatorType::Pointer 
RegriddingInterpolatorPointer
 
typedef ResampleImageFilter
< TFixedImage, TFixedImage > 
ResampleFilterType
 
typedef ResampleFilterType::Pointer ResampleFilterPointer
 
typedef
DeformableTransformType::JacobianDeterminantFilterType::OutputImageType 
JacobianImageType
 

Public Member Functions

virtual const char * GetClassName () const
 
 itkStaticConstMacro (Dimension, unsigned int, TFixedImage::ImageDimension)
 
virtual void StartOptimization (void) override
 
virtual void ResumeOptimization (void)
 
virtual void StopOptimization (void)
 
virtual const bool & GetMaximize ()
 
virtual void SetMaximize (bool _arg)
 
virtual void MaximizeOn ()
 
virtual void MaximizeOff ()
 
virtual double GetValue () const
 
virtual bool GetStop () const
 
virtual void SetMaximumNumberOfIterations (unsigned long int _arg)
 
virtual unsigned long int GetMaximumNumberOfIterations ()
 
virtual unsigned long int GetCurrentIteration ()
 
virtual void SetStepSize (double _arg)
 
virtual double GetStepSize ()
 
virtual void SetMinimumStepSize (double _arg)
 
virtual double GetMinimumStepSize ()
 
virtual void SetIteratingStepSizeReductionFactor (double _arg)
 
virtual double GetIteratingStepSizeReductionFactor ()
 
virtual void SetRegriddingStepSizeReductionFactor (double _arg)
 
virtual double GetRegriddingStepSizeReductionFactor ()
 
virtual void SetJacobianBelowZeroStepSizeReductionFactor (double _arg)
 
virtual double GetJacobianBelowZeroStepSizeReductionFactor ()
 
virtual void SetMinimumDeformationMagnitudeThreshold (double _arg)
 
virtual double GetMinimumDeformationMagnitudeThreshold ()
 
virtual void SetMinimumJacobianThreshold (double _arg)
 
virtual double GetMinimumJacobianThreshold ()
 
virtual void SetRegriddingInterpolator (RegriddingInterpolatorType *_arg)
 
virtual const
RegriddingInterpolatorType
GetRegriddingInterpolator ()
 
virtual void SetDeformableTransform (DeformableTransformType *_arg)
 
virtual const
DeformableTransformType
GetDeformableTransform ()
 
virtual void SetMinimumSimilarityChangeThreshold (double _arg)
 
virtual double GetMinimumSimilarityChangeThreshold ()
 
virtual void SetCheckSimilarityMeasure (bool _arg)
 
virtual bool GetCheckSimilarityMeasure ()
 
virtual void SetCheckMinDeformationMagnitudeThreshold (bool _arg)
 
virtual bool GetCheckMinDeformationMagnitudeThreshold ()
 
virtual void SetCheckJacobianBelowZero (bool _arg)
 
virtual bool GetCheckJacobianBelowZero ()
 
virtual void SetWriteNextParameters (bool _arg)
 
virtual bool GetWriteNextParameters ()
 
virtual void SetNextParametersFileName (std::string _arg)
 
virtual std::string GetNextParametersFileName ()
 
virtual void SetNextParametersFileExt (std::string _arg)
 
virtual std::string GetNextParametersFileExt ()
 
virtual void SetWriteDeformationField (bool _arg)
 
virtual bool GetWriteDeformationField ()
 
virtual void SetDeformationFieldFileName (std::string _arg)
 
virtual std::string GetDeformationFieldFileName ()
 
virtual void SetDeformationFieldFileExt (std::string _arg)
 
virtual std::string GetDeformationFieldFileExt ()
 
virtual void SetWriteRegriddedImage (bool _arg)
 
virtual bool GetWriteRegriddedImage ()
 
virtual void SetRegriddedImageFileName (std::string _arg)
 
virtual std::string GetRegriddedImageFileName ()
 
virtual void SetRegriddedImageFileExt (std::string _arg)
 
virtual std::string GetRegriddedImageFileExt ()
 
virtual void SetRegriddedMovingImagePadValue (MovingImagePixelType _arg)
 
virtual MovingImagePixelType GetRegriddedMovingImagePadValue ()
 
virtual void SetIsAbsRegriddedImage (bool _arg)
 
virtual bool GetIsAbsRegriddedImage ()
 
virtual void SetIsPropagateRegriddedMovingImage (bool _arg)
 
virtual bool GetIsPropagateRegriddedMovingImage ()
 
virtual const JacobianImageTypeGetComposedJacobian () const
 
virtual const FixedImageTypeGetRegriddedMovingImage () const
 
virtual const FixedImageTypeGetRegriddedFixedImage () const
 

Protected Member Functions

 LocalSimilarityMeasureGradientDescentOptimizer ()
 
virtual ~LocalSimilarityMeasureGradientDescentOptimizer ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void Initialize ()
 
virtual double CalculateNextStep (int iterationNumber, double currentSimilarity, const ParametersType &current, ParametersType &next)=0
 
virtual void CleanUp ()
 
virtual void ReGrid (bool isResetCurrentPosition)
 
virtual void ComposeJacobian ()
 

Protected Attributes

bool m_Maximize
 
double m_Value
 
bool m_Stop
 
unsigned long int m_MaximumNumberOfIterations
 
unsigned int m_CurrentIteration
 
unsigned int m_RegriddingNumber
 
double m_StepSize
 
double m_MinimumStepSize
 
double m_IteratingStepSizeReductionFactor
 
double m_RegriddingStepSizeReductionFactor
 
double m_JacobianBelowZeroStepSizeReductionFactor
 
double m_MinimumDeformationMagnitudeThreshold
 
double m_MinimumSimilarityChangeThreshold
 
double m_MinimumJacobianThreshold
 
bool m_CheckSimilarityMeasure
 
bool m_CheckMinDeformationMagnitudeThreshold
 
bool m_CheckJacobianBelowZero
 
bool m_IsAbsRegriddedImage
 
RegriddingInterpolatorPointer m_RegriddingInterpolator
 
ResampleFilterPointer m_RegriddingResampler
 
FixedImageSmartPointer m_RegriddedMovingImage
 
FixedImageSmartPointer m_RegriddedFixedImage
 
DeformableTransformPointer m_DeformableTransform
 
ParametersType m_NextParameters
 
ParametersType m_RegriddedParameters
 
ImageToImageMetricPointer m_ImageToImageMetric
 
FixedImagePointer m_FixedImage
 
MovingImagePointer m_MovingImage
 
bool m_WriteNextParameters
 
std::string m_NextParametersFileName
 
std::string m_NextParametersFileExt
 
bool m_WriteDeformationField
 
std::string m_DeformationFieldFileName
 
std::string m_DeformationFieldFileExt
 
bool m_WriteRegriddedImage
 
std::string m_RegriddedImageFileName
 
std::string m_RegriddedImageFileExt
 
MovingImagePixelType m_RegriddedMovingImagePadValue
 
JacobianImageType::Pointer m_ComposedJacobian
 
bool m_IsPropagateRegriddedMovingImage
 

Detailed Description

template<class TFixedImage, class TMovingImage, class TScalarType, class TDeformationScalar>
class itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >

Implement a gradient descent optimization suitable for FFD and Fluid deformation.

Member Typedef Documentation

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef SmartPointer<const Self> itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ConstPointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef DeformableTransformType::Pointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::DeformableTransformPointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef DeformableTransform<TFixedImage, TScalarType, Dimension, TDeformationScalar> itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::DeformableTransformType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef FixedImageType::PixelType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::FixedImagePixelType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef FixedImageType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::FixedImagePointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef FixedImageType::Pointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::FixedImageSmartPointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef TFixedImage itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::FixedImageType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef const ImageToImageMetricType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ImageToImageMetricPointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef SimilarityMeasure<TFixedImage, TMovingImage> itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ImageToImageMetricType

Typedefs.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef DeformableTransformType::JacobianDeterminantFilterType::OutputImageType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::JacobianImageType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::MeasureType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef MovingImageType::PixelType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::MovingImagePixelType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef MovingImageType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::MovingImagePointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef TMovingImage itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::MovingImageType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef SmartPointer<Self> itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::Pointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef RegriddingInterpolatorType::Pointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::RegriddingInterpolatorPointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef InterpolateImageFunction< TFixedImage, TScalarType > itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::RegriddingInterpolatorType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef ResampleFilterType::Pointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ResampleFilterPointer
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef ResampleImageFilter< TFixedImage, TFixedImage > itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ResampleFilterType
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef LocalSimilarityMeasureGradientDescentOptimizer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::Self

Standard class typedefs.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
typedef SingleValuedNonLinearOptimizer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::Superclass

Constructor & Destructor Documentation

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::LocalSimilarityMeasureGradientDescentOptimizer ( )
protected
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::~LocalSimilarityMeasureGradientDescentOptimizer ( )
inlineprotectedvirtual

Member Function Documentation

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::CalculateNextStep ( int  iterationNumber,
double  currentSimilarity,
const ParametersType &  current,
ParametersType &  next 
)
protectedpure virtual

Calculate a potential step following the gradient direction.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::CleanUp ( )
inlineprotectedvirtual

For any cleanup of optimizer.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ComposeJacobian ( )
inlineprotectedvirtual

Compose the new Jacobian using current and regridded parameters.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetCheckJacobianBelowZero ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetCheckMinDeformationMagnitudeThreshold ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetCheckSimilarityMeasure ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const char* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetClassName ( ) const
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const JacobianImageType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetComposedJacobian ( ) const
inlinevirtual

Return the composed Jacobian.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual unsigned long int itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetCurrentIteration ( )
virtual

Get the current iteration number.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const DeformableTransformType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetDeformableTransform ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetDeformationFieldFileExt ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetDeformationFieldFileName ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetIsAbsRegriddedImage ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetIsPropagateRegriddedMovingImage ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetIteratingStepSizeReductionFactor ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetJacobianBelowZeroStepSizeReductionFactor ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const bool& itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetMaximize ( )
virtual

Set the maximize flag.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual unsigned long int itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetMaximumNumberOfIterations ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetMinimumDeformationMagnitudeThreshold ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetMinimumJacobianThreshold ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetMinimumSimilarityChangeThreshold ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetMinimumStepSize ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetNextParametersFileExt ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetNextParametersFileName ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const FixedImageType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddedFixedImage ( ) const
inlinevirtual

Return the regridded fixed image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddedImageFileExt ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddedImageFileName ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const FixedImageType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddedMovingImage ( ) const
inlinevirtual

Return the regridded moving image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual MovingImagePixelType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddedMovingImagePadValue ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual const RegriddingInterpolatorType* itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddingInterpolator ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetRegriddingStepSizeReductionFactor ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetStepSize ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetStop ( ) const
virtual

Get the value of the stop flag.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetValue ( ) const
virtual

Get the current value of the cost function.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetWriteDeformationField ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetWriteNextParameters ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::GetWriteRegriddedImage ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::Initialize ( void  )
inlineprotectedvirtual

For any initialisation of optimizer.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::itkStaticConstMacro ( Dimension  ,
unsigned  int,
TFixedImage::ImageDimension   
)

Get the number of dimensions we are working in.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::MaximizeOff ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::MaximizeOn ( )
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ReGrid ( bool  isResetCurrentPosition)
protectedvirtual

Do the re-gridding.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::ResumeOptimization ( void  )
virtual

Resume previously stopped optimization with current parameters

See also
StopOptimization.
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetCheckJacobianBelowZero ( bool  _arg)
virtual

Get/Set the CheckJacobianBelowZero flag.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetCheckMinDeformationMagnitudeThreshold ( bool  _arg)
virtual

Get/Set MinimumDeformationMagnitudeThreshold flag.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetCheckSimilarityMeasure ( bool  _arg)
virtual

Get/Set similarity measure checking flag.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetDeformableTransform ( DeformableTransformType _arg)
virtual

Set the deformable transform externally.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetDeformationFieldFileExt ( std::string  _arg)
virtual

At each iteration, filename to decide where we dump the next set of parameters. Default "vtk".

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetDeformationFieldFileName ( std::string  _arg)
virtual

At each iteration, filename to decide where we dump the deformation field. Default "tmp.next.field".

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetIsAbsRegriddedImage ( bool  _arg)
virtual

Set/Get IsAbsRegriddedImage

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetIsPropagateRegriddedMovingImage ( bool  _arg)
virtual

Set/Get.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetIteratingStepSizeReductionFactor ( double  _arg)
virtual

If we can't find a better value of the transformation, we reduce step size and keep hunting.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetJacobianBelowZeroStepSizeReductionFactor ( double  _arg)
virtual

If for some reason, the Jacobian is negative, we reduce the step size and keep hunting.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetMaximize ( bool  _arg)
virtual
template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetMaximumNumberOfIterations ( unsigned long int  _arg)
virtual

Set/Get the maximum number of iterations.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetMinimumDeformationMagnitudeThreshold ( double  _arg)
virtual

If the largest magnitude deformation vector is < MinimumDeformationMagnitudeThreshold, we stop.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetMinimumJacobianThreshold ( double  _arg)
virtual

If any voxel Jacobian drops below MinimumJacobianThreshold we regrid.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetMinimumSimilarityChangeThreshold ( double  _arg)
virtual

So we can force optimizer to stop if cost function not doing much.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetMinimumStepSize ( double  _arg)
virtual

Set/Get the minimum step size.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetNextParametersFileExt ( std::string  _arg)
virtual

At each iteration, filename to decide where we dump the next set of parameters. Default "vtk".

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetNextParametersFileName ( std::string  _arg)
virtual

At each iteration, filename to decide where we dump the next set of parameters. Default "tmp.next.params".

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetRegriddedImageFileExt ( std::string  _arg)
virtual

Each time we regrid, file extension to dump regridded image to. Default "nii".

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetRegriddedImageFileName ( std::string  _arg)
virtual

Each time we regrid, filename to dump regridded image to. Default "tmp.regridded".

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetRegriddedMovingImagePadValue ( MovingImagePixelType  _arg)
virtual

Set/Get the regridded moving image pad value.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetRegriddingInterpolator ( RegriddingInterpolatorType _arg)
virtual

Set the regridding interpolator.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetRegriddingStepSizeReductionFactor ( double  _arg)
virtual

If we decide to regrid, we can also tweak the step size and keep hunting.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetStepSize ( double  _arg)
virtual

Set/Get the initial step size.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetWriteDeformationField ( bool  _arg)
virtual

At each iteration, flag to decide if we dump the deformation field.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetWriteNextParameters ( bool  _arg)
virtual

At each iteration, flag to decide if we dump the next set of parameters.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::SetWriteRegriddedImage ( bool  _arg)
virtual

Each time we regrid, flag to decide if we dump the regridded image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::StartOptimization ( void  )
overridevirtual

Start optimization.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
virtual void itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::StopOptimization ( void  )
virtual

Stop optimization.

See also
ResumeOptimization

Member Data Documentation

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_CheckJacobianBelowZero
protected

Check for jacobian below zero or not. Default true.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_CheckMinDeformationMagnitudeThreshold
protected

Check for min deformation change or not. Default true.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_CheckSimilarityMeasure
protected

Check for better similarity measure or not.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
JacobianImageType::Pointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_ComposedJacobian
protected

Composed Jacobian image calculated along the regridding.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
unsigned int itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_CurrentIteration
protected

The current number of iterations.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
DeformableTransformPointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_DeformableTransform
protected

The deformable transform.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_DeformationFieldFileExt
protected

File extension for deformation field.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_DeformationFieldFileName
protected

File name for deformation field.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
FixedImagePointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_FixedImage
protected

Fixed image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
ImageToImageMetricPointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_ImageToImageMetric
protected

Metric.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_IsAbsRegriddedImage
protected

Set to true to apply an abs filter to the regridded image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_IsPropagateRegriddedMovingImage
protected

Propagate the regridded moving image when re-gridding, if set to true. Exaxctly the same as original Christensen fluid paper. The reason for preferring this is that the interpolation of the image may be more accurate than the interpolation of thee deformation field.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_IteratingStepSizeReductionFactor
protected

If we can't find a better position, we reduce the step size, and keep iterating.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_JacobianBelowZeroStepSizeReductionFactor
protected

If for some reason, Jacobian is negative, we reduce step size, and keep iterating.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_Maximize
protected

Set whether we are maximizing or not.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
unsigned long int itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_MaximumNumberOfIterations
protected

The max. number of iterations.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_MinimumDeformationMagnitudeThreshold
protected

If the deformation is < this threshold, we stop.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_MinimumJacobianThreshold
protected

If the Jacobian is < this threshold, we regrid.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_MinimumSimilarityChangeThreshold
protected

If the similarity doesn't improve over this threshold, we stop.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_MinimumStepSize
protected

Minimum step size.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
MovingImagePointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_MovingImage
protected

Moving image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
ParametersType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_NextParameters
protected

The potential next parameters (subject to Jacobian/Deformation/Cost function checks).

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_NextParametersFileExt
protected

File extension for next parameters at each iteration.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_NextParametersFileName
protected

Filename for next parameters at each iteration.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
FixedImageSmartPointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddedFixedImage
protected

Regridded moving image, resampled to same type as fixed image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddedImageFileExt
protected

File extension for regridded image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
std::string itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddedImageFileName
protected

Filename for regridded image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
FixedImageSmartPointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddedMovingImage
protected

Regridded moving image, resampled to same type as fixed image.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
MovingImagePixelType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddedMovingImagePadValue
protected

Pad value for regridded image. Default 0.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
ParametersType itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddedParameters
protected

Store the regrid

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
RegriddingInterpolatorPointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddingInterpolator
protected

So we can set a regridding interpolator, different from the one we use during registration.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
unsigned int itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddingNumber
protected

The number of the times we have regridded.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
ResampleFilterPointer itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddingResampler
protected

To actually do the resampling.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_RegriddingStepSizeReductionFactor
protected

If Jacobian hits our lowest threshold, and we regrid, we also change step size and keep iterating.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_StepSize
protected

Step Size.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_Stop
protected

Set this flag to stop the optimisation.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
double itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_Value
protected

The current value of the cost function/similarity measure.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_WriteDeformationField
protected

Writes the deformation field at each iteration (to check that the parameters were applied properly.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_WriteNextParameters
protected

Writes the next parameters at each iteration.

template<class TFixedImage , class TMovingImage , class TScalarType , class TDeformationScalar >
bool itk::LocalSimilarityMeasureGradientDescentOptimizer< TFixedImage, TMovingImage, TScalarType, TDeformationScalar >::m_WriteRegriddedImage
protected

So we can optionally turn on dumping out the regridded image.


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