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 | Private Member Functions | Private Attributes
itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage > Class Template Reference

#include <itkGradientDifferenceImageToImageMetric2.h>

Detailed Description

template<class TFixedImage, class TMovingImage>
class itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >

Computes similarity between two objects to be registered.

This Class is templated over the type of the Images to be compared and over the type of transformation and Iterpolator to be used.

This metric computes the sum of squared differences between pixels in the derivatives of the moving and fixed images after passing the squared difference through a function of type $ \frac{1}{1+x} $.

Spatial correspondance between both images is established through a Transform. Pixel values are taken from the Moving image. Their positions are mapped to the Fixed image and result in general in non-grid position on it. Values at these non-grid position of the Fixed image are interpolated using a user-selected Interpolator.

Implementation of this class is based on: Hipwell, J. H., et. al. (2003), "Intensity-Based 2-D-3D Registration of Cerebral Angiograms,", IEEE Transactions on Medical Imaging, 22(11):1417-1426.

Definition at line 75 of file itkGradientDifferenceImageToImageMetric2.h.

+ Inheritance diagram for itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >:

Public Types

typedef CastFixedImageFilterType::Pointer CastFixedImageFilterPointer
 
typedef itk::CastImageFilter< FixedImageType, FixedGradientImageTypeCastFixedImageFilterType
 
typedef CastMovedImageFilterType::Pointer CastMovedImageFilterPointer
 
typedef itk::CastImageFilter< TransformedMovingImageType, MovedGradientImageTypeCastMovedImageFilterType
 
typedef CombinationTransformType::Pointer CombinationTransformPointer
 
typedef itk::AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::DerivativeType DerivativeType
 
typedef itk::Image< RealType, itkGetStaticConstMacro(FixedImageDimension) > FixedGradientImageType
 
typedef FixedGradientImageType::PixelType FixedGradientPixelType
 
typedef Superclass::FixedImageConstPointer FixedImageConstPointer
 
typedef TFixedImage::PixelType FixedImagePixelType
 
typedef Superclass::FixedImageType FixedImageType
 
typedef InterpolatorType::Pointer InterpolatorPointer
 
typedef Superclass::InterpolatorType InterpolatorType
 
typedef Superclass::MeasureType MeasureType
 
typedef itk::Image< RealType, itkGetStaticConstMacro(MovedImageDimension) > MovedGradientImageType
 
typedef MovedGradientImageType::PixelType MovedGradientPixelType
 
typedef TMovingImage::PixelType MovedImagePixelType
 
typedef Superclass::MovingImageConstPointer MovingImageConstPointer
 
typedef MovingImageType::RegionType MovingImageRegionType
 
typedef Superclass::MovingImageType MovingImageType
 
typedef itk::Optimizer OptimizerType
 
typedef SmartPointer< SelfPointer
 
typedef RayCastInterpolatorType::Pointer RayCastInterpolatorPointer
 
typedef itk::AdvancedRayCastInterpolateImageFunction< MovingImageType, ScalarTypeRayCastInterpolatorType
 
typedef Superclass::RealType RealType
 
typedef TransformType::ScalarType ScalarType
 
typedef OptimizerType::ScalesType ScalesType
 
typedef GradientDifferenceImageToImageMetric Self
 
typedef AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
 
typedef itk::Image< FixedImagePixelType, itkGetStaticConstMacro(FixedImageDimension) > TransformedMovingImageType
 
typedef Superclass::TransformJacobianType TransformJacobianType
 
typedef itk::ResampleImageFilter< MovingImageType, TransformedMovingImageTypeTransformMovingImageFilterType
 
typedef Superclass::TransformParametersType TransformParametersType
 
typedef Superclass::TransformPointer TransformPointer
 
typedef Superclass::TransformType TransformType
 
- Public Types inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
typedef AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > AdvancedTransformType
 
typedef BSplineOrder1TransformType::Pointer BSplineOrder1TransformPointer
 
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 > BSplineOrder1TransformType
 
typedef BSplineOrder2TransformType::Pointer BSplineOrder2TransformPointer
 
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 > BSplineOrder2TransformType
 
typedef BSplineOrder3TransformType::Pointer BSplineOrder3TransformPointer
 
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > BSplineOrder3TransformType
 
typedef AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::CoordinateRepresentationType CoordinateRepresentationType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef DerivativeType::ValueType DerivativeValueType
 
typedef Superclass::FixedImageConstPointer FixedImageConstPointer
 
typedef FixedImageLimiterType::OutputType FixedImageLimiterOutputType
 
typedef FixedImageLimiterType::Pointer FixedImageLimiterPointer
 
typedef LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
 
typedef Superclass::FixedImageMaskPointer FixedImageMaskPointer
 
typedef ImageMaskSpatialObject< itkGetStaticConstMacro(FixedImageDimension) > FixedImageMaskSpatialObject2Type
 
typedef Superclass::FixedImageMaskType FixedImageMaskType
 
typedef FixedImageType::PixelType FixedImagePixelType
 
typedef FixedImageType::Pointer FixedImagePointer
 
typedef Superclass::FixedImageRegionType FixedImageRegionType
 
typedef Superclass::FixedImageType FixedImageType
 
typedef Superclass::GradientImageFilterPointer GradientImageFilterPointer
 
typedef Superclass::GradientImageFilterType GradientImageFilterType
 
typedef Superclass::GradientImagePointer GradientImagePointer
 
typedef Superclass::GradientImageType GradientImageType
 
typedef Superclass::GradientPixelType GradientPixelType
 
typedef vnl_sparse_matrix< HessianValueTypeHessianType
 
typedef DerivativeType::ValueType HessianValueType
 
typedef ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
 
typedef ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
 
typedef ImageSamplerType::Pointer ImageSamplerPointer
 
typedef ImageSamplerBase< FixedImageTypeImageSamplerType
 
typedef Superclass::InputPointType InputPointType
 
typedef Superclass::InterpolatorPointer InterpolatorPointer
 
typedef Superclass::InterpolatorType InterpolatorType
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::MovingImageConstPointer MovingImageConstPointer
 
typedef FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
 
typedef MovingImageLimiterType::OutputType MovingImageLimiterOutputType
 
typedef MovingImageLimiterType::Pointer MovingImageLimiterPointer
 
typedef LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
 
typedef Superclass::MovingImageMaskPointer MovingImageMaskPointer
 
typedef ImageMaskSpatialObject< itkGetStaticConstMacro(MovingImageDimension) > MovingImageMaskSpatialObject2Type
 
typedef Superclass::MovingImageMaskType MovingImageMaskType
 
typedef Superclass::MovingImagePixelType MovingImagePixelType
 
typedef MovingImageType::Pointer MovingImagePointer
 
typedef MovingImageType::RegionType MovingImageRegionType
 
typedef Superclass::MovingImageType MovingImageType
 
typedef AdvancedTransformType::NumberOfParametersType NumberOfParametersType
 
typedef Superclass::OutputPointType OutputPointType
 
typedef Superclass::ParametersType ParametersType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::RealType RealType
 
typedef TransformType::ScalarType ScalarType
 
typedef AdvancedImageToImageMetric Self
 
typedef ImageToImageMetric< TFixedImage, TMovingImage > Superclass
 
typedef itk::PlatformMultiThreader ThreaderType
 
typedef ThreaderType::WorkUnitInfo ThreadInfoType
 
typedef Superclass::TransformJacobianType TransformJacobianType
 
typedef Superclass::TransformParametersType TransformParametersType
 
typedef Superclass::TransformPointer TransformPointer
 
typedef Superclass::TransformType TransformType
 

Public Member Functions

virtual const char * GetClassName () const
 
void GetDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const override
 
virtual const doubleGetDerivativeDelta ()
 
virtual const ScalesTypeGetScales ()
 
MeasureType GetValue (const TransformParametersType &parameters) const override
 
void GetValueAndDerivative (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &derivative) const override
 
void Initialize (void) override
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
 
 itkStaticConstMacro (MovedImageDimension, unsigned int, MovingImageType::ImageDimension)
 
virtual void SetDerivativeDelta (double _arg)
 
virtual void SetScales (ScalesType _arg)
 
void WriteGradientImagesToFiles (void) const
 
- Public Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
virtual void BeforeThreadedGetValueAndDerivative (const TransformParametersType &parameters) const
 
virtual const char * GetClassName () const
 
virtual const FixedImageLimiterTypeGetFixedImageLimiter ()
 
virtual double GetFixedLimitRangeRatio () const
 
virtual ImageSamplerTypeGetImageSampler (void) const
 
virtual const MovingImageDerivativeScalesTypeGetMovingImageDerivativeScales ()
 
virtual const MovingImageLimiterTypeGetMovingImageLimiter ()
 
virtual double GetMovingLimitRangeRatio () const
 
virtual double GetRequiredRatioOfValidSamples () const
 
virtual bool GetScaleGradientWithRespectToMovingImageOrientation () const
 
virtual void GetSelfHessian (const TransformParametersType &parameters, HessianType &H) const
 
const AdvancedTransformTypeGetTransform (void) const override
 
virtual bool GetUseFixedImageLimiter () const
 
virtual bool GetUseImageSampler () const
 
virtual const boolGetUseMetricSingleThreaded ()
 
virtual bool GetUseMovingImageDerivativeScales () const
 
virtual bool GetUseMovingImageLimiter () const
 
virtual const boolGetUseMultiThread ()
 
void Initialize (void) override
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension)
 
virtual void SetFixedImageLimiter (FixedImageLimiterType *_arg)
 
virtual void SetFixedLimitRangeRatio (double _arg)
 
virtual void SetImageSampler (ImageSamplerType *_arg)
 
virtual void SetMovingImageDerivativeScales (MovingImageDerivativeScalesType _arg)
 
virtual void SetMovingImageLimiter (MovingImageLimiterType *_arg)
 
virtual void SetMovingLimitRangeRatio (double _arg)
 
virtual void SetNumberOfWorkUnits (ThreadIdType numberOfThreads)
 
virtual void SetRequiredRatioOfValidSamples (double _arg)
 
virtual void SetScaleGradientWithRespectToMovingImageOrientation (bool _arg)
 
virtual void SetTransform (AdvancedTransformType *arg)
 
virtual void SetUseMetricSingleThreaded (bool _arg)
 
virtual void SetUseMovingImageDerivativeScales (bool _arg)
 
virtual void SetUseMultiThread (bool _arg)
 
virtual void UseMetricSingleThreadedOff ()
 
virtual void UseMetricSingleThreadedOn ()
 
virtual void UseMultiThreadOff ()
 
virtual void UseMultiThreadOn ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Types

typedef NeighborhoodOperatorImageFilter< FixedGradientImageType, FixedGradientImageTypeFixedSobelFilter
 
typedef NeighborhoodOperatorImageFilter< MovedGradientImageType, MovedGradientImageTypeMovedSobelFilter
 
- Protected Types inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
typedef BSplineInterpolatorFloatType::Pointer BSplineInterpolatorFloatPointer
 
typedef BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, floatBSplineInterpolatorFloatType
 
typedef BSplineInterpolatorType::Pointer BSplineInterpolatorPointer
 
typedef BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, doubleBSplineInterpolatorType
 
typedef CentralDifferenceGradientFilterType::Pointer CentralDifferenceGradientFilterPointer
 
typedef GradientImageFilter< MovingImageType, RealType, RealTypeCentralDifferenceGradientFilterType
 
typedef FixedImageType::IndexType FixedImageIndexType
 
typedef FixedImageIndexType::IndexValueType FixedImageIndexValueType
 
typedef TransformType::InputPointType FixedImagePointType
 
typedef LinearInterpolatorType::Pointer LinearInterpolatorPointer
 
typedef AdvancedLinearInterpolateImageFunction< MovingImageType, CoordinateRepresentationTypeLinearInterpolatorType
 
typedef InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
 
typedef BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
 
typedef MovingImageType::IndexType MovingImageIndexType
 
typedef TransformType::OutputPointType MovingImagePointType
 
typedef AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
 
typedef ReducedBSplineInterpolatorType::Pointer ReducedBSplineInterpolatorPointer
 
typedef ReducedDimensionBSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, doubleReducedBSplineInterpolatorType
 

Protected Member Functions

MeasureType ComputeMeasure (const TransformParametersType &parameters, const double *subtractionFactor) const
 
void ComputeMovedGradientRange (void) const
 
void ComputeVariance (void) const
 
 GradientDifferenceImageToImageMetric ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~GradientDifferenceImageToImageMetric () override
 
- Protected Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
 AdvancedImageToImageMetric ()
 
virtual void AfterThreadedGetValue (MeasureType &value) const
 
virtual void AfterThreadedGetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const
 
virtual void CheckForAdvancedTransform (void)
 
virtual void CheckForBSplineInterpolator (void)
 
virtual void CheckForBSplineTransform (void) const
 
virtual void CheckNumberOfSamples (unsigned long wanted, unsigned long found) const
 
virtual bool EvaluateMovingImageValueAndDerivative (const MovingImagePointType &mappedPoint, RealType &movingImageValue, MovingImageDerivativeType *gradient) const
 
virtual bool EvaluateTransformJacobian (const FixedImagePointType &fixedImagePoint, TransformJacobianType &jacobian, NonZeroJacobianIndicesType &nzji) const
 
virtual void EvaluateTransformJacobianInnerProduct (const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const
 
virtual void InitializeImageSampler (void)
 
virtual void InitializeLimiters (void)
 
virtual void InitializeThreadingParameters (void) const
 
virtual bool IsInsideMovingMask (const MovingImagePointType &point) const
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValueAndDerivativePerThreadStruct, AlignedGetValueAndDerivativePerThreadStruct)
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValuePerThreadStruct, AlignedGetValuePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValueAndDerivativePerThreadStruct, PaddedGetValueAndDerivativePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValuePerThreadStruct, PaddedGetValuePerThreadStruct)
 
void LaunchGetValueAndDerivativeThreaderCallback (void) const
 
void LaunchGetValueThreaderCallback (void) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetUseFixedImageLimiter (bool _arg)
 
virtual void SetUseImageSampler (bool _arg)
 
virtual void SetUseMovingImageLimiter (bool _arg)
 
virtual void ThreadedGetValue (ThreadIdType threadID)
 
virtual void ThreadedGetValueAndDerivative (ThreadIdType threadID)
 
virtual bool TransformPoint (const FixedImagePointType &fixedImagePoint, MovingImagePointType &mappedPoint) const
 
 ~AdvancedImageToImageMetric () override
 

Private Member Functions

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

Private Attributes

CastFixedImageFilterPointer m_CastFixedImageFilter
 
CastMovedImageFilterPointer m_CastMovedImageFilter
 
CombinationTransformPointer m_CombinationTransform
 
double m_DerivativeDelta
 
ZeroFluxNeumannBoundaryCondition< FixedGradientImageTypem_FixedBoundCond
 
FixedSobelFilter::Pointer m_FixedSobelFilters [itkGetStaticConstMacro(FixedImageDimension)]
 
SobelOperator< FixedGradientPixelType, itkGetStaticConstMacro(FixedImageDimension) > m_FixedSobelOperators [FixedImageDimension]
 
FixedGradientPixelType m_MaxFixedGradient [FixedImageDimension]
 
MovedGradientPixelType m_MaxMovedGradient [MovedImageDimension]
 
FixedGradientPixelType m_MinFixedGradient [FixedImageDimension]
 
MovedGradientPixelType m_MinMovedGradient [MovedImageDimension]
 
ZeroFluxNeumannBoundaryCondition< MovedGradientImageTypem_MovedBoundCond
 
MovedSobelFilter::Pointer m_MovedSobelFilters [itkGetStaticConstMacro(MovedImageDimension)]
 
SobelOperator< MovedGradientPixelType, itkGetStaticConstMacro(MovedImageDimension) > m_MovedSobelOperators [MovedImageDimension]
 
double m_Rescalingfactor
 
ScalesType m_Scales
 
TransformMovingImageFilterType::Pointer m_TransformMovingImageFilter
 
MovedGradientPixelType m_Variance [FixedImageDimension]
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION AccumulateDerivativesThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetValueAndDerivativeThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetValueThreaderCallback (void *arg)
 
- Protected Attributes inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
AdvancedTransformType::Pointer m_AdvancedTransform
 
BSplineInterpolatorPointer m_BSplineInterpolator
 
BSplineInterpolatorFloatPointer m_BSplineInterpolatorFloat
 
CentralDifferenceGradientFilterPointer m_CentralDifferenceGradientFilter
 
FixedImageLimiterPointer m_FixedImageLimiter
 
FixedImageLimiterOutputType m_FixedImageMaxLimit
 
FixedImageLimiterOutputType m_FixedImageMinLimit
 
FixedImagePixelType m_FixedImageTrueMax
 
FixedImagePixelType m_FixedImageTrueMin
 
double m_FixedLimitRangeRatio
 
AlignedGetValueAndDerivativePerThreadStruct * m_GetValueAndDerivativePerThreadVariables
 
ThreadIdType m_GetValueAndDerivativePerThreadVariablesSize
 
AlignedGetValuePerThreadStruct * m_GetValuePerThreadVariables
 
ThreadIdType m_GetValuePerThreadVariablesSize
 
ImageSamplerPointer m_ImageSampler
 
bool m_InterpolatorIsBSpline
 
bool m_InterpolatorIsBSplineFloat
 
bool m_InterpolatorIsLinear
 
bool m_InterpolatorIsReducedBSpline
 
LinearInterpolatorPointer m_LinearInterpolator
 
MovingImageLimiterPointer m_MovingImageLimiter
 
MovingImageLimiterOutputType m_MovingImageMaxLimit
 
MovingImageLimiterOutputType m_MovingImageMinLimit
 
MovingImagePixelType m_MovingImageTrueMax
 
MovingImagePixelType m_MovingImageTrueMin
 
double m_MovingLimitRangeRatio
 
ReducedBSplineInterpolatorPointer m_ReducedBSplineInterpolator
 
MultiThreaderParameterType m_ThreaderMetricParameters
 
bool m_TransformIsAdvanced
 
bool m_TransformIsBSpline
 
bool m_UseMetricSingleThreaded
 
bool m_UseMultiThread
 
bool m_UseOpenMP
 

Member Typedef Documentation

◆ CastFixedImageFilterPointer

template<class TFixedImage , class TMovingImage >
typedef CastFixedImageFilterType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastFixedImageFilterPointer

Definition at line 139 of file itkGradientDifferenceImageToImageMetric2.h.

◆ CastFixedImageFilterType

template<class TFixedImage , class TMovingImage >
typedef itk::CastImageFilter< FixedImageType, FixedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastFixedImageFilterType

Definition at line 138 of file itkGradientDifferenceImageToImageMetric2.h.

◆ CastMovedImageFilterPointer

template<class TFixedImage , class TMovingImage >
typedef CastMovedImageFilterType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastMovedImageFilterPointer

Definition at line 145 of file itkGradientDifferenceImageToImageMetric2.h.

◆ CastMovedImageFilterType

template<class TFixedImage , class TMovingImage >
typedef itk::CastImageFilter< TransformedMovingImageType, MovedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastMovedImageFilterType

Definition at line 144 of file itkGradientDifferenceImageToImageMetric2.h.

◆ CombinationTransformPointer

template<class TFixedImage , class TMovingImage >
typedef CombinationTransformType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CombinationTransformPointer

Definition at line 127 of file itkGradientDifferenceImageToImageMetric2.h.

◆ CombinationTransformType

template<class TFixedImage , class TMovingImage >
typedef itk::AdvancedCombinationTransform< ScalarType, FixedImageDimension > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CombinationTransformType

Definition at line 126 of file itkGradientDifferenceImageToImageMetric2.h.

◆ ConstPointer

template<class TFixedImage , class TMovingImage >
typedef SmartPointer< const Self > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer

Definition at line 85 of file itkGradientDifferenceImageToImageMetric2.h.

◆ DerivativeType

template<class TFixedImage , class TMovingImage >
typedef Superclass::DerivativeType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType

Definition at line 109 of file itkGradientDifferenceImageToImageMetric2.h.

◆ FixedGradientImageType

template<class TFixedImage , class TMovingImage >
typedef itk::Image< RealType, itkGetStaticConstMacro( FixedImageDimension ) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedGradientImageType

Definition at line 136 of file itkGradientDifferenceImageToImageMetric2.h.

◆ FixedGradientPixelType

template<class TFixedImage , class TMovingImage >
typedef FixedGradientImageType::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedGradientPixelType

Definition at line 140 of file itkGradientDifferenceImageToImageMetric2.h.

◆ FixedImageConstPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageConstPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer

Definition at line 112 of file itkGradientDifferenceImageToImageMetric2.h.

◆ FixedImagePixelType

template<class TFixedImage , class TMovingImage >
typedef TFixedImage::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType

Definition at line 114 of file itkGradientDifferenceImageToImageMetric2.h.

◆ FixedImageType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType

Definition at line 110 of file itkGradientDifferenceImageToImageMetric2.h.

◆ FixedSobelFilter

template<class TFixedImage , class TMovingImage >
typedef NeighborhoodOperatorImageFilter< FixedGradientImageType, FixedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedSobelFilter
protected

Definition at line 190 of file itkGradientDifferenceImageToImageMetric2.h.

◆ InterpolatorPointer

template<class TFixedImage , class TMovingImage >
typedef InterpolatorType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorPointer

Definition at line 107 of file itkGradientDifferenceImageToImageMetric2.h.

◆ InterpolatorType

template<class TFixedImage , class TMovingImage >
typedef Superclass::InterpolatorType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorType

Definition at line 106 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MeasureType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MeasureType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MeasureType

Definition at line 108 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovedGradientImageType

template<class TFixedImage , class TMovingImage >
typedef itk::Image< RealType, itkGetStaticConstMacro( MovedImageDimension ) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedGradientImageType

Definition at line 142 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovedGradientPixelType

template<class TFixedImage , class TMovingImage >
typedef MovedGradientImageType::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedGradientPixelType

Definition at line 146 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovedImagePixelType

template<class TFixedImage , class TMovingImage >
typedef TMovingImage::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedImagePixelType

Definition at line 115 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovedSobelFilter

template<class TFixedImage , class TMovingImage >
typedef NeighborhoodOperatorImageFilter< MovedGradientImageType, MovedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedSobelFilter
protected

Definition at line 193 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovingImageConstPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageConstPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer

Definition at line 113 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovingImageRegionType

template<class TFixedImage , class TMovingImage >
typedef MovingImageType::RegionType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType

Definition at line 116 of file itkGradientDifferenceImageToImageMetric2.h.

◆ MovingImageType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType

Definition at line 111 of file itkGradientDifferenceImageToImageMetric2.h.

◆ OptimizerType

template<class TFixedImage , class TMovingImage >
typedef itk::Optimizer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::OptimizerType

Definition at line 117 of file itkGradientDifferenceImageToImageMetric2.h.

◆ Pointer

template<class TFixedImage , class TMovingImage >
typedef SmartPointer< Self > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Pointer

Definition at line 84 of file itkGradientDifferenceImageToImageMetric2.h.

◆ RayCastInterpolatorPointer

template<class TFixedImage , class TMovingImage >
typedef RayCastInterpolatorType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::RayCastInterpolatorPointer

Definition at line 134 of file itkGradientDifferenceImageToImageMetric2.h.

◆ RayCastInterpolatorType

template<class TFixedImage , class TMovingImage >
typedef itk::AdvancedRayCastInterpolateImageFunction< MovingImageType, ScalarType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::RayCastInterpolatorType

Definition at line 133 of file itkGradientDifferenceImageToImageMetric2.h.

◆ RealType

template<class TFixedImage , class TMovingImage >
typedef Superclass::RealType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::RealType

Types transferred from the base class Work around a Visual Studio .NET bug

Definition at line 98 of file itkGradientDifferenceImageToImageMetric2.h.

◆ ScalarType

template<class TFixedImage , class TMovingImage >
typedef TransformType::ScalarType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ScalarType

Definition at line 102 of file itkGradientDifferenceImageToImageMetric2.h.

◆ ScalesType

template<class TFixedImage , class TMovingImage >
typedef OptimizerType::ScalesType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ScalesType

Definition at line 118 of file itkGradientDifferenceImageToImageMetric2.h.

◆ Self

template<class TFixedImage , class TMovingImage >
typedef GradientDifferenceImageToImageMetric itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Self

Standard class typedefs.

Definition at line 81 of file itkGradientDifferenceImageToImageMetric2.h.

◆ Superclass

template<class TFixedImage , class TMovingImage >
typedef AdvancedImageToImageMetric< TFixedImage, TMovingImage > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Superclass

Definition at line 82 of file itkGradientDifferenceImageToImageMetric2.h.

◆ TransformedMovingImageType

template<class TFixedImage , class TMovingImage >
typedef itk::Image< FixedImagePixelType, itkGetStaticConstMacro( FixedImageDimension ) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformedMovingImageType

Definition at line 129 of file itkGradientDifferenceImageToImageMetric2.h.

◆ TransformJacobianType

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformJacobianType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType

Definition at line 105 of file itkGradientDifferenceImageToImageMetric2.h.

◆ TransformMovingImageFilterType

template<class TFixedImage , class TMovingImage >
typedef itk::ResampleImageFilter< MovingImageType, TransformedMovingImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformMovingImageFilterType

Definition at line 131 of file itkGradientDifferenceImageToImageMetric2.h.

◆ TransformParametersType

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformParametersType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType

Definition at line 104 of file itkGradientDifferenceImageToImageMetric2.h.

◆ TransformPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer

Definition at line 103 of file itkGradientDifferenceImageToImageMetric2.h.

◆ TransformType

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformType

Definition at line 101 of file itkGradientDifferenceImageToImageMetric2.h.

Constructor & Destructor Documentation

◆ GradientDifferenceImageToImageMetric() [1/2]

template<class TFixedImage , class TMovingImage >
itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GradientDifferenceImageToImageMetric ( )
protected

◆ ~GradientDifferenceImageToImageMetric()

template<class TFixedImage , class TMovingImage >
itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::~GradientDifferenceImageToImageMetric ( )
inlineoverrideprotected

Definition at line 176 of file itkGradientDifferenceImageToImageMetric2.h.

◆ GradientDifferenceImageToImageMetric() [2/2]

template<class TFixedImage , class TMovingImage >
itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GradientDifferenceImageToImageMetric ( const Self )
private

Member Function Documentation

◆ ComputeMeasure()

template<class TFixedImage , class TMovingImage >
MeasureType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ComputeMeasure ( const TransformParametersType parameters,
const double subtractionFactor 
) const
protected

Compute the similarity measure using a specified subtraction factor.

◆ ComputeMovedGradientRange()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ComputeMovedGradientRange ( void  ) const
protected

Compute the range of the moved image gradients.

◆ ComputeVariance()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ComputeVariance ( void  ) const
protected

Compute the variance and range of the moving image gradients.

◆ GetClassName()

template<class TFixedImage , class TMovingImage >
virtual const char * itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

Reimplemented in elastix::GradientDifferenceMetric< TElastix >.

◆ GetDerivative()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetDerivative ( const TransformParametersType parameters,
DerivativeType derivative 
) const
override

Get the derivatives of the match measure.

◆ GetDerivativeDelta()

template<class TFixedImage , class TMovingImage >
virtual const double & itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetDerivativeDelta ( )
virtual

◆ GetScales()

template<class TFixedImage , class TMovingImage >
virtual const ScalesType & itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetScales ( )
virtual

◆ GetValue()

template<class TFixedImage , class TMovingImage >
MeasureType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetValue ( const TransformParametersType parameters) const
override

Get the value for single valued optimizers.

◆ GetValueAndDerivative()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivative ( const TransformParametersType parameters,
MeasureType Value,
DerivativeType derivative 
) const
override

Get value and derivatives for multiple valued optimizers.

◆ Initialize()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Initialize ( void  )
override

◆ itkStaticConstMacro() [1/2]

template<class TFixedImage , class TMovingImage >
itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned int  ,
FixedImageType::ImageDimension   
)

◆ itkStaticConstMacro() [2/2]

template<class TFixedImage , class TMovingImage >
itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( MovedImageDimension  ,
unsigned int  ,
MovingImageType::ImageDimension   
)

◆ New()

template<class TFixedImage , class TMovingImage >
static Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

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

◆ PrintSelf()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected

◆ SetDerivativeDelta()

template<class TFixedImage , class TMovingImage >
virtual void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::SetDerivativeDelta ( double  _arg)
virtual

Set/Get the value of Delta used for computing derivatives by finite differences in the GetDerivative() method

◆ SetScales()

template<class TFixedImage , class TMovingImage >
virtual void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::SetScales ( ScalesType  _arg)
virtual

Set/Get Scales

◆ WriteGradientImagesToFiles()

template<class TFixedImage , class TMovingImage >
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::WriteGradientImagesToFiles ( void  ) const

Write gradient images to a files for debugging purposes.

Field Documentation

◆ m_CastFixedImageFilter

template<class TFixedImage , class TMovingImage >
CastFixedImageFilterPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_CastFixedImageFilter
private

The Sobel gradients of the fixed image

Definition at line 215 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_CastMovedImageFilter

template<class TFixedImage , class TMovingImage >
CastMovedImageFilterPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_CastMovedImageFilter
private

The Sobel gradients of the moving image

Definition at line 228 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_CombinationTransform

template<class TFixedImage , class TMovingImage >
CombinationTransformPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_CombinationTransform
private

Definition at line 240 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_DerivativeDelta

template<class TFixedImage , class TMovingImage >
double itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_DerivativeDelta
private

Definition at line 238 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_FixedBoundCond

template<class TFixedImage , class TMovingImage >
ZeroFluxNeumannBoundaryCondition< FixedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_FixedBoundCond
private

Definition at line 225 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_FixedSobelFilters

template<class TFixedImage , class TMovingImage >
FixedSobelFilter::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_FixedSobelFilters[itkGetStaticConstMacro(FixedImageDimension)]
private

Definition at line 221 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_FixedSobelOperators

template<class TFixedImage , class TMovingImage >
SobelOperator< FixedGradientPixelType, itkGetStaticConstMacro( FixedImageDimension ) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_FixedSobelOperators[FixedImageDimension]
private

Definition at line 219 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MaxFixedGradient

template<class TFixedImage , class TMovingImage >
FixedGradientPixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MaxFixedGradient[FixedImageDimension]
mutableprivate

Definition at line 209 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MaxMovedGradient

template<class TFixedImage , class TMovingImage >
MovedGradientPixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MaxMovedGradient[MovedImageDimension]
mutableprivate

Definition at line 205 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MinFixedGradient

template<class TFixedImage , class TMovingImage >
FixedGradientPixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MinFixedGradient[FixedImageDimension]
mutableprivate

The range of the fixed image gradients.

Definition at line 208 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MinMovedGradient

template<class TFixedImage , class TMovingImage >
MovedGradientPixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MinMovedGradient[MovedImageDimension]
mutableprivate

The range of the moving image gradients.

Definition at line 204 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MovedBoundCond

template<class TFixedImage , class TMovingImage >
ZeroFluxNeumannBoundaryCondition< MovedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MovedBoundCond
private

Definition at line 224 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MovedSobelFilters

template<class TFixedImage , class TMovingImage >
MovedSobelFilter::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MovedSobelFilters[itkGetStaticConstMacro(MovedImageDimension)]
private

Definition at line 234 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_MovedSobelOperators

template<class TFixedImage , class TMovingImage >
SobelOperator< MovedGradientPixelType, itkGetStaticConstMacro( MovedImageDimension ) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_MovedSobelOperators[MovedImageDimension]
private

Definition at line 232 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_Rescalingfactor

template<class TFixedImage , class TMovingImage >
double itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_Rescalingfactor
private

Definition at line 239 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_Scales

template<class TFixedImage , class TMovingImage >
ScalesType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_Scales
private

Definition at line 237 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_TransformMovingImageFilter

template<class TFixedImage , class TMovingImage >
TransformMovingImageFilterType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_TransformMovingImageFilter
private

The filter for transforming the moving image.

Definition at line 212 of file itkGradientDifferenceImageToImageMetric2.h.

◆ m_Variance

template<class TFixedImage , class TMovingImage >
MovedGradientPixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::m_Variance[FixedImageDimension]
mutableprivate

The variance of the moving image gradients.

Definition at line 201 of file itkGradientDifferenceImageToImageMetric2.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo