ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches

#include <itkTwoImageToOneImageMetric.h>

Detailed Description

template<typename TFixedImage, typename TMovingImage>
class itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >

Computes similarity between two fixed images and one fixed image.

This Class is templated over the type of the two input images. It expects a Transform and two Interpolators to be plugged in. This particular class is the base class for a hierarchy of similarity metrics.

This class computes a value that measures the similarity between two Fixed image and the transformed Moving images. The Interpolators are used to compute intensity values on non-grid positions resulting from mapping points through the Transform.

Definition at line 52 of file itkTwoImageToOneImageMetric.h.

+ Inheritance diagram for itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >:
+ Collaboration diagram for itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using CoordinateRepresentationType = Superclass::ParametersValueType
 
using DerivativeType = Superclass::DerivativeType
 
using FixedImageConstPointer = typename FixedImageType::ConstPointer
 
using FixedImageMaskPointer = typename FixedImageMaskType::Pointer
 
typedef SpatialObject< Self::FixedImageDimension > FixedImageMaskType
 
using FixedImageRegionType = typename FixedImageType::RegionType
 
using FixedImageType = TFixedImage
 
using GradientImageFilterPointer = typename GradientImageFilterType::Pointer
 
using GradientImageFilterType = GradientRecursiveGaussianImageFilter<MovingImageType, GradientImageType>
 
using GradientImagePointer = SmartPointer<GradientImageType>
 
using GradientImageType = Image<GradientPixelType, Self::MovingImageDimension>
 
using GradientPixelType = CovariantVector<RealType, Self::MovingImageDimension>
 
using InputPointType = typename TransformType::InputPointType
 
using InterpolatorPointer = typename InterpolatorType::Pointer
 
using InterpolatorType = InterpolateImageFunction<MovingImageType, CoordinateRepresentationType>
 
using MeasureType = Superclass::MeasureType
 
using MovingImageConstPointer = typename MovingImageType::ConstPointer
 
using MovingImageMaskPointer = typename MovingImageMaskType::Pointer
 
typedef SpatialObject< Self::MovingImageDimension > MovingImageMaskType
 
using MovingImagePixelType = typename TMovingImage::PixelType
 
using MovingImageType = TMovingImage
 
using OutputPointType = typename TransformType::OutputPointType
 
using ParametersType = Superclass::ParametersType
 
using Pointer = SmartPointer<Self>
 
using RealType = typename NumericTraits<MovingImagePixelType>::RealType
 
using Self = TwoImageToOneImageMetric
 
using Superclass = SingleValuedCostFunction
 
using TransformJacobianType = typename TransformType::JacobianType
 
using TransformParametersType = typename TransformType::ParametersType
 
using TransformPointer = typename TransformType::Pointer
 
using TransformType = Transform<CoordinateRepresentationType, Self::MovingImageDimension, Self::FixedImageDimension>
 
- Public Types inherited from itk::SingleValuedCostFunction
using ConstPointer = SmartPointer<const Self>
 
using DerivativeType = Array<ParametersValueType>
 
using MeasureType = double
 
using ParametersType = Superclass::ParametersType
 
using ParametersValueType = Superclass::ParametersValueType
 
using Pointer = SmartPointer<Self>
 
using Self = SingleValuedCostFunction
 
using Superclass = CostFunction
 
- Public Types inherited from itk::CostFunctionTemplate< double >
using ConstPointer
 
using ParametersType
 
using ParametersValueType
 
using Pointer
 
using Self
 
using Superclass
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

virtual void ComputeGradientOff ()
 
virtual void ComputeGradientOn ()
 
virtual const bool & GetComputeGradient () const
 
virtual const FixedImageType * GetFixedImage1 () const
 
virtual const FixedImageType * GetFixedImage2 () const
 
virtual const FixedImageMaskType * GetFixedImageMask1 () const
 
virtual const FixedImageMaskType * GetFixedImageMask2 () const
 
virtual const FixedImageRegionType & GetFixedImageRegion1 () const
 
virtual const FixedImageRegionType & GetFixedImageRegion2 () const
 
virtual const GradientImageType * GetGradientImage () const
 
virtual const InterpolatorType * GetInterpolator1 () const
 
virtual const InterpolatorType * GetInterpolator2 () const
 
virtual const MovingImageType * GetMovingImage () const
 
virtual const MovingImageMaskType * GetMovingImageMask () const
 
virtual const char * GetNameOfClass () const
 
unsigned int GetNumberOfParameters () const override
 
virtual const unsigned long & GetNumberOfPixelsCounted () const
 
virtual const TransformType * GetTransform () const
 
virtual void Initialize ()
 
virtual void SetComputeGradient (bool _arg)
 
virtual void SetFixedImage1 (const FixedImageType *_arg)
 
virtual void SetFixedImage2 (const FixedImageType *_arg)
 
virtual void SetFixedImageMask1 (FixedImageMaskType *_arg)
 
virtual void SetFixedImageMask2 (FixedImageMaskType *_arg)
 
virtual void SetFixedImageRegion1 (FixedImageRegionType _arg)
 
virtual void SetFixedImageRegion2 (FixedImageRegionType _arg)
 
virtual void SetInterpolator1 (InterpolatorType *_arg)
 
virtual void SetInterpolator2 (InterpolatorType *_arg)
 
virtual void SetMovingImage (const MovingImageType *_arg)
 
virtual void SetMovingImageMask (MovingImageMaskType *_arg)
 
virtual void SetTransform (TransformType *_arg)
 
void SetTransformParameters (const ParametersType &parameters) const
 
- Public Member Functions inherited from itk::SingleValuedCostFunction
virtual void GetDerivative (const ParametersType &parameters, DerivativeType &derivative) const =0
 
virtual MeasureType GetValue (const ParametersType &parameters) const =0
 
virtual void GetValueAndDerivative (const ParametersType &parameters, MeasureType &value, DerivativeType &derivative) const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Attributes

static constexpr unsigned int FixedImageDimension = TFixedImage::ImageDimension
 
static constexpr unsigned int MovingImageDimension = TMovingImage::ImageDimension
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const override
 
 TwoImageToOneImageMetric ()
 
 ~TwoImageToOneImageMetric () override=default
 
- Protected Member Functions inherited from itk::SingleValuedCostFunction
 SingleValuedCostFunction ()=default
 
 ~SingleValuedCostFunction () override
 
- Protected Member Functions inherited from itk::CostFunctionTemplate< double >
 CostFunctionTemplate ()=default
 
 CostFunctionTemplate ()=default
 
 ~CostFunctionTemplate () override=default
 
 ~CostFunctionTemplate () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

bool m_ComputeGradient
 
FixedImageConstPointer m_FixedImage1
 
FixedImageConstPointer m_FixedImage2
 
FixedImageMaskPointer m_FixedImageMask1
 
FixedImageMaskPointer m_FixedImageMask2
 
GradientImagePointer m_GradientImage
 
InterpolatorPointer m_Interpolator1
 
InterpolatorPointer m_Interpolator2
 
MovingImageConstPointer m_MovingImage
 
MovingImageMaskPointer m_MovingImageMask
 
unsigned long m_NumberOfPixelsCounted
 
TransformPointer m_Transform
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Private Attributes

FixedImageRegionType m_FixedImageRegion1
 
FixedImageRegionType m_FixedImageRegion2
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Member Typedef Documentation

◆ ConstPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self>

Definition at line 61 of file itkTwoImageToOneImageMetric.h.

◆ CoordinateRepresentationType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::CoordinateRepresentationType = Superclass::ParametersValueType

Type used for representing point components

Definition at line 64 of file itkTwoImageToOneImageMetric.h.

◆ DerivativeType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::DerivativeType = Superclass::DerivativeType

Type of the derivative.

Definition at line 120 of file itkTwoImageToOneImageMetric.h.

◆ FixedImageConstPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer = typename FixedImageType::ConstPointer

Definition at line 76 of file itkTwoImageToOneImageMetric.h.

◆ FixedImageMaskPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::FixedImageMaskPointer = typename FixedImageMaskType::Pointer

Definition at line 108 of file itkTwoImageToOneImageMetric.h.

◆ FixedImageMaskType

template<typename TFixedImage, typename TMovingImage>
typedef SpatialObject<Self::FixedImageDimension> itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::FixedImageMaskType

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

Definition at line 107 of file itkTwoImageToOneImageMetric.h.

◆ FixedImageRegionType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::FixedImageRegionType = typename FixedImageType::RegionType

Definition at line 77 of file itkTwoImageToOneImageMetric.h.

◆ FixedImageType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::FixedImageType = TFixedImage

Type of the fixed Image.

Definition at line 75 of file itkTwoImageToOneImageMetric.h.

◆ GradientImageFilterPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GradientImageFilterPointer = typename GradientImageFilterType::Pointer

Definition at line 102 of file itkTwoImageToOneImageMetric.h.

◆ GradientImageFilterType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GradientImageFilterType = GradientRecursiveGaussianImageFilter<MovingImageType, GradientImageType>

Definition at line 101 of file itkTwoImageToOneImageMetric.h.

◆ GradientImagePointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GradientImagePointer = SmartPointer<GradientImageType>

Definition at line 100 of file itkTwoImageToOneImageMetric.h.

◆ GradientImageType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GradientImageType = Image<GradientPixelType, Self::MovingImageDimension>

Definition at line 99 of file itkTwoImageToOneImageMetric.h.

◆ GradientPixelType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GradientPixelType = CovariantVector<RealType, Self::MovingImageDimension>

Definition at line 98 of file itkTwoImageToOneImageMetric.h.

◆ InputPointType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::InputPointType = typename TransformType::InputPointType

Definition at line 87 of file itkTwoImageToOneImageMetric.h.

◆ InterpolatorPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::InterpolatorPointer = typename InterpolatorType::Pointer

Definition at line 103 of file itkTwoImageToOneImageMetric.h.

◆ InterpolatorType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::InterpolatorType = InterpolateImageFunction<MovingImageType, CoordinateRepresentationType>

Type of the Interpolator Base class

Definition at line 93 of file itkTwoImageToOneImageMetric.h.

◆ MeasureType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MeasureType = Superclass::MeasureType

Type of the measure.

Definition at line 117 of file itkTwoImageToOneImageMetric.h.

◆ MovingImageConstPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer = typename MovingImageType::ConstPointer

Definition at line 72 of file itkTwoImageToOneImageMetric.h.

◆ MovingImageMaskPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MovingImageMaskPointer = typename MovingImageMaskType::Pointer

Definition at line 113 of file itkTwoImageToOneImageMetric.h.

◆ MovingImageMaskType

template<typename TFixedImage, typename TMovingImage>
typedef SpatialObject<Self::MovingImageDimension> itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MovingImageMaskType

Type for the mask of the moving image. Only pixels that are "inside" this mask will be considered for the computation of the metric

Definition at line 112 of file itkTwoImageToOneImageMetric.h.

◆ MovingImagePixelType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType = typename TMovingImage::PixelType

Definition at line 71 of file itkTwoImageToOneImageMetric.h.

◆ MovingImageType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MovingImageType = TMovingImage

Type of the moving Image.

Definition at line 70 of file itkTwoImageToOneImageMetric.h.

◆ OutputPointType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::OutputPointType = typename TransformType::OutputPointType

Definition at line 88 of file itkTwoImageToOneImageMetric.h.

◆ ParametersType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::ParametersType = Superclass::ParametersType

Type of the parameters.

Definition at line 123 of file itkTwoImageToOneImageMetric.h.

◆ Pointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::Pointer = SmartPointer<Self>

Definition at line 60 of file itkTwoImageToOneImageMetric.h.

◆ RealType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::RealType = typename NumericTraits<MovingImagePixelType>::RealType

Gaussian filter to compute the gradient of the Moving Image

Definition at line 97 of file itkTwoImageToOneImageMetric.h.

◆ Self

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::Self = TwoImageToOneImageMetric

Standard class type alias.

Definition at line 58 of file itkTwoImageToOneImageMetric.h.

◆ Superclass

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::Superclass = SingleValuedCostFunction

Definition at line 59 of file itkTwoImageToOneImageMetric.h.

◆ TransformJacobianType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::TransformJacobianType = typename TransformType::JacobianType

Definition at line 90 of file itkTwoImageToOneImageMetric.h.

◆ TransformParametersType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::TransformParametersType = typename TransformType::ParametersType

Definition at line 89 of file itkTwoImageToOneImageMetric.h.

◆ TransformPointer

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::TransformPointer = typename TransformType::Pointer

Definition at line 86 of file itkTwoImageToOneImageMetric.h.

◆ TransformType

template<typename TFixedImage, typename TMovingImage>
using itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::TransformType = Transform<CoordinateRepresentationType, Self::MovingImageDimension, Self::FixedImageDimension>

Type of the Transform Base class

Definition at line 84 of file itkTwoImageToOneImageMetric.h.

Constructor & Destructor Documentation

◆ TwoImageToOneImageMetric()

template<typename TFixedImage, typename TMovingImage>
itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::TwoImageToOneImageMetric ( )
protected

◆ ~TwoImageToOneImageMetric()

template<typename TFixedImage, typename TMovingImage>
itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::~TwoImageToOneImageMetric ( )
overrideprotecteddefault

Member Function Documentation

◆ ComputeGradientOff()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::ComputeGradientOff ( )
virtual

◆ ComputeGradientOn()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::ComputeGradientOn ( )
virtual

◆ GetComputeGradient()

template<typename TFixedImage, typename TMovingImage>
virtual const bool & itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetComputeGradient ( ) const
virtual

◆ GetFixedImage1()

template<typename TFixedImage, typename TMovingImage>
virtual const FixedImageType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetFixedImage1 ( ) const
virtual

Get the Fixed Image.

◆ GetFixedImage2()

template<typename TFixedImage, typename TMovingImage>
virtual const FixedImageType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetFixedImage2 ( ) const
virtual

Get the Fixed Image.

◆ GetFixedImageMask1()

template<typename TFixedImage, typename TMovingImage>
virtual const FixedImageMaskType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetFixedImageMask1 ( ) const
virtual

◆ GetFixedImageMask2()

template<typename TFixedImage, typename TMovingImage>
virtual const FixedImageMaskType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetFixedImageMask2 ( ) const
virtual

◆ GetFixedImageRegion1()

template<typename TFixedImage, typename TMovingImage>
virtual const FixedImageRegionType & itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetFixedImageRegion1 ( ) const
virtual

Get the region over which the metric will be computed

◆ GetFixedImageRegion2()

template<typename TFixedImage, typename TMovingImage>
virtual const FixedImageRegionType & itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetFixedImageRegion2 ( ) const
virtual

Get the region over which the metric will be computed

◆ GetGradientImage()

template<typename TFixedImage, typename TMovingImage>
virtual const GradientImageType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetGradientImage ( ) const
virtual

Get Gradient Image.

◆ GetInterpolator1()

template<typename TFixedImage, typename TMovingImage>
virtual const InterpolatorType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetInterpolator1 ( ) const
virtual

Get a pointer to the Interpolator.

◆ GetInterpolator2()

template<typename TFixedImage, typename TMovingImage>
virtual const InterpolatorType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetInterpolator2 ( ) const
virtual

Get a pointer to the Interpolator.

◆ GetMovingImage()

template<typename TFixedImage, typename TMovingImage>
virtual const MovingImageType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetMovingImage ( ) const
virtual

Get the Moving Image.

◆ GetMovingImageMask()

template<typename TFixedImage, typename TMovingImage>
virtual const MovingImageMaskType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetMovingImageMask ( ) const
virtual

◆ GetNameOfClass()

template<typename TFixedImage, typename TMovingImage>
virtual const char * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::SingleValuedCostFunction.

Reimplemented in itk::NormalizedCorrelationTwoImageToOneImageMetric< TFixedImage, TMovingImage >.

◆ GetNumberOfParameters()

template<typename TFixedImage, typename TMovingImage>
unsigned int itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetNumberOfParameters ( ) const
inlineoverridevirtual

Return the number of parameters required by the Transform

Implements itk::CostFunctionTemplate< double >.

Definition at line 200 of file itkTwoImageToOneImageMetric.h.

◆ GetNumberOfPixelsCounted()

template<typename TFixedImage, typename TMovingImage>
virtual const unsigned long & itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetNumberOfPixelsCounted ( ) const
virtual

Get the number of pixels considered in the computation.

◆ GetTransform()

template<typename TFixedImage, typename TMovingImage>
virtual const TransformType * itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::GetTransform ( ) const
virtual

Get a pointer to the Transform.

◆ Initialize()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::Initialize ( )
virtual

Initialize the Metric by making sure that all the components are present and plugged together correctly

◆ PrintSelf()

template<typename TFixedImage, typename TMovingImage>
void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::PrintSelf ( std::ostream & os,
Indent indent ) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::CostFunctionTemplate< double >.

◆ SetComputeGradient()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetComputeGradient ( bool _arg)
virtual

Set/Get gradient computation.

◆ SetFixedImage1()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetFixedImage1 ( const FixedImageType * _arg)
virtual

Connect the Fixed Image.

◆ SetFixedImage2()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetFixedImage2 ( const FixedImageType * _arg)
virtual

Connect the Fixed Image.

◆ SetFixedImageMask1()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetFixedImageMask1 ( FixedImageMaskType * _arg)
virtual

Set/Get the fixed image mask.

◆ SetFixedImageMask2()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetFixedImageMask2 ( FixedImageMaskType * _arg)
virtual

◆ SetFixedImageRegion1()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetFixedImageRegion1 ( FixedImageRegionType _arg)
virtual

Set the region over which the metric will be computed

◆ SetFixedImageRegion2()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetFixedImageRegion2 ( FixedImageRegionType _arg)
virtual

Set the region over which the metric will be computed

◆ SetInterpolator1()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetInterpolator1 ( InterpolatorType * _arg)
virtual

Connect the Interpolator.

◆ SetInterpolator2()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetInterpolator2 ( InterpolatorType * _arg)
virtual

Connect the Interpolator.

◆ SetMovingImage()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetMovingImage ( const MovingImageType * _arg)
virtual

Connect the Moving Image.

◆ SetMovingImageMask()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetMovingImageMask ( MovingImageMaskType * _arg)
virtual

Set/Get the moving image mask.

◆ SetTransform()

template<typename TFixedImage, typename TMovingImage>
virtual void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetTransform ( TransformType * _arg)
virtual

Connect the Transform.

◆ SetTransformParameters()

template<typename TFixedImage, typename TMovingImage>
void itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::SetTransformParameters ( const ParametersType & parameters) const

Set the parameters defining the Transform.

Member Data Documentation

◆ FixedImageDimension

template<typename TFixedImage, typename TMovingImage>
unsigned int itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::FixedImageDimension = TFixedImage::ImageDimension
staticconstexpr

Definition at line 81 of file itkTwoImageToOneImageMetric.h.

◆ m_ComputeGradient

template<typename TFixedImage, typename TMovingImage>
bool itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_ComputeGradient
protected

Definition at line 226 of file itkTwoImageToOneImageMetric.h.

◆ m_FixedImage1

template<typename TFixedImage, typename TMovingImage>
FixedImageConstPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_FixedImage1
protected

Definition at line 218 of file itkTwoImageToOneImageMetric.h.

◆ m_FixedImage2

template<typename TFixedImage, typename TMovingImage>
FixedImageConstPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_FixedImage2
protected

Definition at line 219 of file itkTwoImageToOneImageMetric.h.

◆ m_FixedImageMask1

template<typename TFixedImage, typename TMovingImage>
FixedImageMaskPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_FixedImageMask1
mutableprotected

Definition at line 229 of file itkTwoImageToOneImageMetric.h.

◆ m_FixedImageMask2

template<typename TFixedImage, typename TMovingImage>
FixedImageMaskPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_FixedImageMask2
mutableprotected

Definition at line 230 of file itkTwoImageToOneImageMetric.h.

◆ m_FixedImageRegion1

template<typename TFixedImage, typename TMovingImage>
FixedImageRegionType itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_FixedImageRegion1
private

Definition at line 234 of file itkTwoImageToOneImageMetric.h.

◆ m_FixedImageRegion2

template<typename TFixedImage, typename TMovingImage>
FixedImageRegionType itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_FixedImageRegion2
private

Definition at line 235 of file itkTwoImageToOneImageMetric.h.

◆ m_GradientImage

template<typename TFixedImage, typename TMovingImage>
GradientImagePointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_GradientImage
protected

Definition at line 227 of file itkTwoImageToOneImageMetric.h.

◆ m_Interpolator1

template<typename TFixedImage, typename TMovingImage>
InterpolatorPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_Interpolator1
protected

Definition at line 223 of file itkTwoImageToOneImageMetric.h.

◆ m_Interpolator2

template<typename TFixedImage, typename TMovingImage>
InterpolatorPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_Interpolator2
protected

Definition at line 224 of file itkTwoImageToOneImageMetric.h.

◆ m_MovingImage

template<typename TFixedImage, typename TMovingImage>
MovingImageConstPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_MovingImage
protected

Definition at line 220 of file itkTwoImageToOneImageMetric.h.

◆ m_MovingImageMask

template<typename TFixedImage, typename TMovingImage>
MovingImageMaskPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_MovingImageMask
mutableprotected

Definition at line 231 of file itkTwoImageToOneImageMetric.h.

◆ m_NumberOfPixelsCounted

template<typename TFixedImage, typename TMovingImage>
unsigned long itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_NumberOfPixelsCounted
mutableprotected

Definition at line 216 of file itkTwoImageToOneImageMetric.h.

◆ m_Transform

template<typename TFixedImage, typename TMovingImage>
TransformPointer itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::m_Transform
mutableprotected

Definition at line 222 of file itkTwoImageToOneImageMetric.h.

◆ MovingImageDimension

template<typename TFixedImage, typename TMovingImage>
unsigned int itk::TwoImageToOneImageMetric< TFixedImage, TMovingImage >::MovingImageDimension = TMovingImage::ImageDimension
staticconstexpr

Constants for the image dimensions

Definition at line 80 of file itkTwoImageToOneImageMetric.h.


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