go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
itk::ComputeJacobianTerms< TFixedImage, TTransform > Class Template Reference

#include <itkComputeJacobianTerms.h>

Detailed Description

template<class TFixedImage, class TTransform>
class itk::ComputeJacobianTerms< TFixedImage, TTransform >

This is a helper class for the automatic parameter estimation of the ASGD optimizer.

More specifically this class computes the Jacobian terms related to the automatic parameter estimation for the adaptive stochastic gradient descent optimizer. Details can be found in the paper.

Definition at line 37 of file itkComputeJacobianTerms.h.

+ Inheritance diagram for itk::ComputeJacobianTerms< TFixedImage, TTransform >:

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef FixedImageMaskType::ConstPointer FixedImageMaskConstPointer
 
typedef FixedImageMaskType::Pointer FixedImageMaskPointer
 
typedef SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > FixedImageMaskType
 
typedef FixedImageType::RegionType FixedImageRegionType
 
typedef TFixedImage FixedImageType
 
typedef TransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
 
typedef SmartPointer< SelfPointer
 
typedef ScaledSingleValuedNonLinearOptimizerType::ScaledCostFunctionPointer ScaledCostFunctionPointer
 
typedef ScaledSingleValuedNonLinearOptimizer ScaledSingleValuedNonLinearOptimizerType
 
typedef ScaledSingleValuedNonLinearOptimizerType::ScalesType ScalesType
 
typedef ComputeJacobianTerms Self
 
typedef Object Superclass
 
typedef TransformType::Pointer TransformPointer
 
typedef TTransform TransformType
 

Public Member Functions

virtual void Compute (double &TrC, double &TrCC, double &maxJJ, double &maxJCJ)
 
virtual const char * GetClassName () const
 
virtual const FixedImageMaskTypeGetFixedImageMask ()
 
virtual const FixedImageRegionTypeGetFixedImageRegion ()
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
 
virtual void SetFixedImage (const FixedImageType *_arg)
 
virtual void SetFixedImageMask (const FixedImageMaskType *_arg)
 
virtual void SetFixedImageMask (FixedImageMaskType *_arg)
 
void SetFixedImageRegion (const FixedImageRegionType &region)
 
virtual void SetMaxBandCovSize (unsigned int _arg)
 
virtual void SetNumberOfBandStructureSamples (unsigned int _arg)
 
virtual void SetNumberOfJacobianMeasurements (SizeValueType _arg)
 
virtual void SetScales (ScalesType _arg)
 
virtual void SetTransform (TransformType *_arg)
 
virtual void SetUseScales (bool _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Types

typedef TransformType::ScalarType CoordinateRepresentationType
 
typedef FixedImageType::IndexType FixedImageIndexType
 
typedef FixedImageType::PointType FixedImagePointType
 
typedef ImageGridSamplerType::Pointer ImageGridSamplerPointer
 
typedef ImageGridSampler< FixedImageTypeImageGridSamplerType
 
typedef ImageRandomSamplerBaseType::Pointer ImageRandomSamplerBasePointer
 
typedef ImageRandomSamplerBase< FixedImageTypeImageRandomSamplerBaseType
 
typedef ImageSampleContainerType::Pointer ImageSampleContainerPointer
 
typedef ImageGridSamplerType::ImageSampleContainerType ImageSampleContainerType
 
typedef ImageSamplerBaseType::Pointer ImageSamplerBasePointer
 
typedef ImageSamplerBase< FixedImageTypeImageSamplerBaseType
 
typedef TransformType::JacobianType JacobianType
 
typedef JacobianType::ValueType JacobianValueType
 
typedef TransformType::NumberOfParametersType NumberOfParametersType
 
typedef JacobianType TransformJacobianType
 

Protected Member Functions

 ComputeJacobianTerms ()
 
virtual void SampleFixedImageForJacobianTerms (ImageSampleContainerPointer &sampleContainer)
 
 ~ComputeJacobianTerms () override
 

Protected Attributes

FixedImageType::ConstPointer m_FixedImage
 
FixedImageMaskConstPointer m_FixedImageMask
 
FixedImageRegionType m_FixedImageRegion
 
unsigned int m_MaxBandCovSize
 
unsigned int m_NumberOfBandStructureSamples
 
SizeValueType m_NumberOfJacobianMeasurements
 
ScalesType m_Scales
 
TransformPointer m_Transform
 
bool m_UseScales
 

Private Member Functions

 ComputeJacobianTerms (const Self &)
 
void operator= (const Self &)
 

Member Typedef Documentation

◆ ConstPointer

template<class TFixedImage , class TTransform >
typedef SmartPointer< const Self > itk::ComputeJacobianTerms< TFixedImage, TTransform >::ConstPointer

Definition at line 46 of file itkComputeJacobianTerms.h.

◆ CoordinateRepresentationType

template<class TFixedImage , class TTransform >
typedef TransformType::ScalarType itk::ComputeJacobianTerms< TFixedImage, TTransform >::CoordinateRepresentationType
protected

Definition at line 145 of file itkComputeJacobianTerms.h.

◆ FixedImageIndexType

template<class TFixedImage , class TTransform >
typedef FixedImageType::IndexType itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImageIndexType
protected

Definition at line 126 of file itkComputeJacobianTerms.h.

◆ FixedImageMaskConstPointer

template<class TFixedImage , class TTransform >
typedef FixedImageMaskType::ConstPointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImageMaskConstPointer

Definition at line 67 of file itkComputeJacobianTerms.h.

◆ FixedImageMaskPointer

template<class TFixedImage , class TTransform >
typedef FixedImageMaskType::Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImageMaskPointer

Definition at line 66 of file itkComputeJacobianTerms.h.

◆ FixedImageMaskType

template<class TFixedImage , class TTransform >
typedef SpatialObject< itkGetStaticConstMacro( FixedImageDimension ) > itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImageMaskType

Definition at line 65 of file itkComputeJacobianTerms.h.

◆ FixedImagePointType

template<class TFixedImage , class TTransform >
typedef FixedImageType::PointType itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImagePointType
protected

Definition at line 127 of file itkComputeJacobianTerms.h.

◆ FixedImageRegionType

template<class TFixedImage , class TTransform >
typedef FixedImageType::RegionType itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImageRegionType

Definition at line 58 of file itkComputeJacobianTerms.h.

◆ FixedImageType

template<class TFixedImage , class TTransform >
typedef TFixedImage itk::ComputeJacobianTerms< TFixedImage, TTransform >::FixedImageType

typedef

Definition at line 55 of file itkComputeJacobianTerms.h.

◆ ImageGridSamplerPointer

template<class TFixedImage , class TTransform >
typedef ImageGridSamplerType::Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageGridSamplerPointer
protected

Definition at line 138 of file itkComputeJacobianTerms.h.

◆ ImageGridSamplerType

template<class TFixedImage , class TTransform >
typedef ImageGridSampler< FixedImageType > itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageGridSamplerType
protected

Definition at line 137 of file itkComputeJacobianTerms.h.

◆ ImageRandomSamplerBasePointer

template<class TFixedImage , class TTransform >
typedef ImageRandomSamplerBaseType::Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageRandomSamplerBasePointer
protected

Definition at line 135 of file itkComputeJacobianTerms.h.

◆ ImageRandomSamplerBaseType

template<class TFixedImage , class TTransform >
typedef ImageRandomSamplerBase< FixedImageType > itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageRandomSamplerBaseType
protected

Definition at line 134 of file itkComputeJacobianTerms.h.

◆ ImageSampleContainerPointer

template<class TFixedImage , class TTransform >
typedef ImageSampleContainerType::Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageSampleContainerPointer
protected

Definition at line 141 of file itkComputeJacobianTerms.h.

◆ ImageSampleContainerType

template<class TFixedImage , class TTransform >
typedef ImageGridSamplerType::ImageSampleContainerType itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageSampleContainerType
protected

Definition at line 140 of file itkComputeJacobianTerms.h.

◆ ImageSamplerBasePointer

template<class TFixedImage , class TTransform >
typedef ImageSamplerBaseType::Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageSamplerBasePointer
protected

Definition at line 133 of file itkComputeJacobianTerms.h.

◆ ImageSamplerBaseType

template<class TFixedImage , class TTransform >
typedef ImageSamplerBase< FixedImageType > itk::ComputeJacobianTerms< TFixedImage, TTransform >::ImageSamplerBaseType
protected

Samplers.

Definition at line 132 of file itkComputeJacobianTerms.h.

◆ JacobianType

template<class TFixedImage , class TTransform >
typedef TransformType::JacobianType itk::ComputeJacobianTerms< TFixedImage, TTransform >::JacobianType
protected

Definition at line 128 of file itkComputeJacobianTerms.h.

◆ JacobianValueType

template<class TFixedImage , class TTransform >
typedef JacobianType::ValueType itk::ComputeJacobianTerms< TFixedImage, TTransform >::JacobianValueType
protected

Definition at line 129 of file itkComputeJacobianTerms.h.

◆ NonZeroJacobianIndicesType

template<class TFixedImage , class TTransform >
typedef TransformType::NonZeroJacobianIndicesType itk::ComputeJacobianTerms< TFixedImage, TTransform >::NonZeroJacobianIndicesType

Definition at line 73 of file itkComputeJacobianTerms.h.

◆ NumberOfParametersType

template<class TFixedImage , class TTransform >
typedef TransformType::NumberOfParametersType itk::ComputeJacobianTerms< TFixedImage, TTransform >::NumberOfParametersType
protected

Definition at line 146 of file itkComputeJacobianTerms.h.

◆ Pointer

template<class TFixedImage , class TTransform >
typedef SmartPointer< Self > itk::ComputeJacobianTerms< TFixedImage, TTransform >::Pointer

Definition at line 45 of file itkComputeJacobianTerms.h.

◆ ScaledCostFunctionPointer

template<class TFixedImage , class TTransform >
typedef ScaledSingleValuedNonLinearOptimizerType::ScaledCostFunctionPointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::ScaledCostFunctionPointer

Definition at line 71 of file itkComputeJacobianTerms.h.

◆ ScaledSingleValuedNonLinearOptimizerType

template<class TFixedImage , class TTransform >
typedef ScaledSingleValuedNonLinearOptimizer itk::ComputeJacobianTerms< TFixedImage, TTransform >::ScaledSingleValuedNonLinearOptimizerType

Definition at line 69 of file itkComputeJacobianTerms.h.

◆ ScalesType

template<class TFixedImage , class TTransform >
typedef ScaledSingleValuedNonLinearOptimizerType::ScalesType itk::ComputeJacobianTerms< TFixedImage, TTransform >::ScalesType

Definition at line 72 of file itkComputeJacobianTerms.h.

◆ Self

template<class TFixedImage , class TTransform >
typedef ComputeJacobianTerms itk::ComputeJacobianTerms< TFixedImage, TTransform >::Self

Standard ITK.

Definition at line 43 of file itkComputeJacobianTerms.h.

◆ Superclass

template<class TFixedImage , class TTransform >
typedef Object itk::ComputeJacobianTerms< TFixedImage, TTransform >::Superclass

Definition at line 44 of file itkComputeJacobianTerms.h.

◆ TransformJacobianType

template<class TFixedImage , class TTransform >
typedef JacobianType itk::ComputeJacobianTerms< TFixedImage, TTransform >::TransformJacobianType
protected

Typedefs for support of sparse Jacobians and AdvancedTransforms.

Definition at line 144 of file itkComputeJacobianTerms.h.

◆ TransformPointer

template<class TFixedImage , class TTransform >
typedef TransformType::Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::TransformPointer

Definition at line 57 of file itkComputeJacobianTerms.h.

◆ TransformType

template<class TFixedImage , class TTransform >
typedef TTransform itk::ComputeJacobianTerms< TFixedImage, TTransform >::TransformType

Definition at line 56 of file itkComputeJacobianTerms.h.

Constructor & Destructor Documentation

◆ ComputeJacobianTerms() [1/2]

template<class TFixedImage , class TTransform >
itk::ComputeJacobianTerms< TFixedImage, TTransform >::ComputeJacobianTerms ( )
protected

◆ ~ComputeJacobianTerms()

template<class TFixedImage , class TTransform >
itk::ComputeJacobianTerms< TFixedImage, TTransform >::~ComputeJacobianTerms ( )
inlineoverrideprotected

Definition at line 113 of file itkComputeJacobianTerms.h.

◆ ComputeJacobianTerms() [2/2]

template<class TFixedImage , class TTransform >
itk::ComputeJacobianTerms< TFixedImage, TTransform >::ComputeJacobianTerms ( const Self )
private

Member Function Documentation

◆ Compute()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::Compute ( double TrC,
double TrCC,
double maxJJ,
double maxJCJ 
)
virtual

The main functions that performs the computation.

◆ GetClassName()

template<class TFixedImage , class TTransform >
virtual const char * itk::ComputeJacobianTerms< TFixedImage, TTransform >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

◆ GetFixedImageMask()

template<class TFixedImage , class TTransform >
virtual const FixedImageMaskType * itk::ComputeJacobianTerms< TFixedImage, TTransform >::GetFixedImageMask ( )
virtual

◆ GetFixedImageRegion()

template<class TFixedImage , class TTransform >
virtual const FixedImageRegionType & itk::ComputeJacobianTerms< TFixedImage, TTransform >::GetFixedImageRegion ( )
virtual

Get the region over which the metric will be computed.

◆ itkStaticConstMacro()

template<class TFixedImage , class TTransform >
itk::ComputeJacobianTerms< TFixedImage, TTransform >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned int  ,
TFixedImage::ImageDimension   
)

Type for the mask of the fixed image. Only pixels that are "inside" this mask will be considered for the computation of the Jacobian terms.

◆ New()

template<class TFixedImage , class TTransform >
static Pointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TFixedImage , class TTransform >
void itk::ComputeJacobianTerms< TFixedImage, TTransform >::operator= ( const Self )
private

◆ SampleFixedImageForJacobianTerms()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SampleFixedImageForJacobianTerms ( ImageSampleContainerPointer sampleContainer)
protectedvirtual

Sample the fixed image to compute the Jacobian terms.

◆ SetFixedImage()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetFixedImage ( const FixedImageType _arg)
virtual

Set the fixed image.

◆ SetFixedImageMask() [1/2]

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetFixedImageMask ( const FixedImageMaskType _arg)
virtual

◆ SetFixedImageMask() [2/2]

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetFixedImageMask ( FixedImageMaskType _arg)
virtual

Set/Get the fixed image mask.

◆ SetFixedImageRegion()

template<class TFixedImage , class TTransform >
void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetFixedImageRegion ( const FixedImageRegionType region)
inline

Set the region over which the metric will be computed.

Definition at line 94 of file itkComputeJacobianTerms.h.

◆ SetMaxBandCovSize()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetMaxBandCovSize ( unsigned int  _arg)
virtual

◆ SetNumberOfBandStructureSamples()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetNumberOfBandStructureSamples ( unsigned int  _arg)
virtual

◆ SetNumberOfJacobianMeasurements()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetNumberOfJacobianMeasurements ( SizeValueType  _arg)
virtual

◆ SetScales()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetScales ( ScalesType  _arg)
virtual

Set some parameters.

◆ SetTransform()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetTransform ( TransformType _arg)
virtual

Set the transform.

◆ SetUseScales()

template<class TFixedImage , class TTransform >
virtual void itk::ComputeJacobianTerms< TFixedImage, TTransform >::SetUseScales ( bool  _arg)
virtual

Field Documentation

◆ m_FixedImage

template<class TFixedImage , class TTransform >
FixedImageType::ConstPointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_FixedImage
protected

Definition at line 115 of file itkComputeJacobianTerms.h.

◆ m_FixedImageMask

template<class TFixedImage , class TTransform >
FixedImageMaskConstPointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_FixedImageMask
protected

Definition at line 117 of file itkComputeJacobianTerms.h.

◆ m_FixedImageRegion

template<class TFixedImage , class TTransform >
FixedImageRegionType itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_FixedImageRegion
protected

Definition at line 116 of file itkComputeJacobianTerms.h.

◆ m_MaxBandCovSize

template<class TFixedImage , class TTransform >
unsigned int itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_MaxBandCovSize
protected

Definition at line 122 of file itkComputeJacobianTerms.h.

◆ m_NumberOfBandStructureSamples

template<class TFixedImage , class TTransform >
unsigned int itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_NumberOfBandStructureSamples
protected

Definition at line 123 of file itkComputeJacobianTerms.h.

◆ m_NumberOfJacobianMeasurements

template<class TFixedImage , class TTransform >
SizeValueType itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_NumberOfJacobianMeasurements
protected

Definition at line 124 of file itkComputeJacobianTerms.h.

◆ m_Scales

template<class TFixedImage , class TTransform >
ScalesType itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_Scales
protected

Definition at line 119 of file itkComputeJacobianTerms.h.

◆ m_Transform

template<class TFixedImage , class TTransform >
TransformPointer itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_Transform
protected

Definition at line 118 of file itkComputeJacobianTerms.h.

◆ m_UseScales

template<class TFixedImage , class TTransform >
bool itk::ComputeJacobianTerms< TFixedImage, TTransform >::m_UseScales
protected

Definition at line 120 of file itkComputeJacobianTerms.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo