NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
itk::MIImageToImageMetric< TFixedImage, TMovingImage > Class Template Reference

Implements Mutual Information of a histogram for a similarity measure. More...

Inheritance diagram for itk::MIImageToImageMetric< TFixedImage, TMovingImage >:
Inheritance graph
[legend]
Collaboration diagram for itk::MIImageToImageMetric< TFixedImage, TMovingImage >:
Collaboration graph
[legend]

Public Types

typedef MIImageToImageMetric Self
 
typedef
HistogramSimilarityMeasure
< TFixedImage, TMovingImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::FixedImageType::PixelType 
FixedImagePixelType
 
typedef
Superclass::MovingImageType::PixelType 
MovingImagePixelType
 
typedef Superclass::MeasureType MeasureType
 
- Public Types inherited from itk::HistogramSimilarityMeasure< TFixedImage, TMovingImage >
typedef HistogramSimilarityMeasure Self
 
typedef SimilarityMeasure
< TFixedImage, TMovingImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::ParametersType ParametersType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef
Superclass::FixedImagePixelType 
FixedImagePixelType
 
typedef
Superclass::MovingImagePixelType 
MovingImagePixelType
 
typedef
Statistics::UCLHistogram
< double, 2 > 
HistogramType
 
typedef HistogramType::Pointer HistogramPointer
 
typedef HistogramType::SizeType HistogramSizeType
 
typedef
HistogramType::MeasurementVectorType 
HistogramMeasurementVectorType
 
typedef
HistogramType::AbsoluteFrequencyType 
HistogramFrequencyType
 
typedef HistogramType::Iterator HistogramIteratorType
 
- Public Types inherited from itk::FiniteDifferenceGradientSimilarityMeasure< TFixedImage, TMovingImage >
typedef
FiniteDifferenceGradientSimilarityMeasure 
Self
 
typedef SimilarityMeasure
< TFixedImage, TMovingImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Array< double > ScalesType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef Superclass::TransformType TransformType
 
typedef
Superclass::TransformParametersType 
TransformParametersType
 
typedef Superclass::MeasureType MeasureType
 
- Public Types inherited from itk::SimilarityMeasure< TFixedImage, TMovingImage >
typedef SimilarityMeasure Self
 
typedef
ImageToImageMetricWithConstraint
< TFixedImage, TMovingImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::TransformType TransformType
 
typedef itk::UCLBaseTransform
< double,
TFixedImage::ImageDimension,
TMovingImage::ImageDimension > 
UCLBaseTransformType
 
typedef
Superclass::TransformPointer 
TransformPointer
 
typedef
Superclass::TransformParametersType 
TransformParametersType
 
typedef
Superclass::TransformJacobianType 
TransformJacobianType
 
typedef Superclass::InputPointType InputPointType
 
typedef Superclass::OutputPointType OutputPointType
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef Superclass::FixedImageType FixedImageType
 
typedef FixedImageType::SizeType FixedImageSizeType
 
typedef
Superclass::FixedImageType::PixelType 
FixedImagePixelType
 
typedef Superclass::MovingImageType MovingImageType
 
typedef MovingImageType::SizeType MovingImageSizeType
 
typedef
Superclass::MovingImageType::PixelType 
MovingImagePixelType
 
typedef
Superclass::FixedImageConstPointer 
FixedImageConstPointer
 
typedef
Superclass::MovingImageConstPointer 
MovingImageConstPointer
 
typedef ImageFileWriter
< TFixedImage > 
ImageFileWriterType
 
typedef
Superclass::InterpolatorType 
InterpolatorType
 
typedef Image< char,
TFixedImage::ImageDimension > 
MidwayImageType
 
typedef Image< float,
TFixedImage::ImageDimension > 
FloatImageType
 
typedef Image< unsigned char,
TFixedImage::ImageDimension > 
UnsignedCharImageType
 
typedef
SignedMaurerDistanceMapImageFilter
< UnsignedCharImageType,
FloatImageType
FixedDistanceMapImageFilterType
 
typedef
SignedMaurerDistanceMapImageFilter
< UnsignedCharImageType,
FloatImageType
MovingDistanceMapImageFilterType
 
typedef
LinearInterpolateImageFunction
< FloatImageType, double > 
DistanceMapLinearInterpolatorType
 
typedef
itk::EulerAffineTransform
< double,
TFixedImage::ImageDimension,
TMovingImage::ImageDimension > 
AffineTransformType
 
typedef const
ImageMaskSpatialObject
< TFixedImage::ImageDimension > 
FixedMaskType
 
typedef const
ImageMaskSpatialObject
< TMovingImage::ImageDimension > 
MovingMaskType
 
- Public Types inherited from itk::ImageToImageMetricWithConstraint< TFixedImage, TMovingImage >
typedef
ImageToImageMetricWithConstraint 
Self
 
typedef ImageToImageMetric
< TFixedImage, TMovingImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef itk::Constraint ConstraintType
 
typedef ConstraintType::Pointer ConstraintPointer
 
typedef MetricDerivativeBridge
< TFixedImage, TMovingImage > 
MetricDerivativeBridgeType
 
typedef
MetricDerivativeBridgeType::Pointer 
MetricDerivativePointer
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef Superclass::ParametersType TransformParametersType
 

Public Member Functions

virtual const char * GetClassName () const
 
bool ShouldBeMaximized ()
 
- Public Member Functions inherited from itk::HistogramSimilarityMeasure< TFixedImage, TMovingImage >
void Initialize () throw (ExceptionObject)
 
void SetHistogramSize (int x, int y)
 
virtual void SetHistogramSize (HistogramSizeType _arg)
 
virtual const HistogramSizeTypeGetHistogramSize ()
 
virtual HistogramTypeGetHistogram ()
 
virtual void SetUseParzenFilling (bool _arg)
 
virtual bool GetUseParzenFilling ()
 
double GetParzenValue (double x)
 
double GetParzenDerivative (double x)
 
- Public Member Functions inherited from itk::FiniteDifferenceGradientSimilarityMeasure< TFixedImage, TMovingImage >
virtual void GetCostFunctionDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const
 
void SetTransform (TransformType *transform)
 
virtual void SetDerivativeStepLength (double _arg)
 
virtual double GetDerivativeStepLength ()
 
virtual void SetDerivativeStepLengthScales (ScalesType _arg)
 
virtual const ScalesTypeGetDerivativeStepLengthScales ()
 
virtual void SetUseDerivativeScaleArray (bool _arg)
 
virtual bool GetUseDerivativeScaleArray ()
 
- Public Member Functions inherited from itk::SimilarityMeasure< TFixedImage, TMovingImage >
void Initialize () throw (ExceptionObject)
 
void InitializeIntensityBounds () throw (ExceptionObject)
 
void SetIntensityBounds (const FixedImagePixelType fixedLower, const FixedImagePixelType fixedUpper, const MovingImagePixelType movingLower, const MovingImagePixelType movingUpper)
 
virtual FixedImagePixelType GetFixedLowerBound () const
 
virtual FixedImagePixelType GetFixedUpperBound () const
 
virtual MovingImagePixelType GetMovingLowerBound () const
 
virtual MovingImagePixelType GetMovingUpperBound () const
 
virtual long int GetNumberOfFixedSamples ()
 
virtual long int GetNumberOfMovingSamples ()
 
virtual void SetTwoSidedMetric (bool _arg)
 
virtual bool GetTwoSidedMetric ()
 
virtual void SetWriteFixedImage (bool _arg)
 
virtual bool GetWriteFixedImage ()
 
virtual void SetFixedImageFileName (std::string _arg)
 
virtual std::string GetFixedImageFileName ()
 
virtual void SetFixedImageFileExt (std::string _arg)
 
virtual std::string GetFixedImageFileExt ()
 
virtual void SetWriteTransformedMovingImage (bool _arg)
 
virtual bool GetWriteTransformedMovingImage ()
 
virtual void SetTransformedMovingImageFileName (std::string _arg)
 
virtual std::string GetTransformedMovingImageFileName ()
 
virtual void SetTransformedMovingImageFileExt (std::string _arg)
 
virtual std::string GetTransformedMovingImageFileExt ()
 
virtual void SetDirectVoxelComparison (bool _arg)
 
virtual bool GetDirectVoxelComparison ()
 
virtual void SetSymmetricMetric (int _arg)
 
virtual int GetSymmetricMetric ()
 
virtual void SetIsUpdateMatrix (bool _arg)
 
virtual bool GetIsUpdateMatrix ()
 
virtual void SetTransformedMovingImagePadValue (MovingImagePixelType _arg)
 
virtual MovingImagePixelType GetTransformedMovingImagePadValue ()
 
virtual void SetUseWeighting (bool _arg)
 
virtual bool GetUseWeighting ()
 
virtual void SetWeightingDistanceThreshold (double _arg)
 
virtual double GetWeightingDistanceThreshold ()
 
virtual void SetFixedImageInterpolator (InterpolatorType *_arg)
 
virtual void SetMovingImageInterpolator (InterpolatorType *_arg)
 
virtual InterpolatorTypeGetFixedImageInterpolator ()
 
virtual InterpolatorTypeGetMovingImageInterpolator ()
 
virtual void SetFixedImageTransform (TransformType *_arg)
 
virtual TransformTypeGetFixedImageTransform ()
 
virtual void SetInitialiseIntensityBoundsUsingMask (bool _arg)
 
virtual bool GetInitialiseIntensityBoundsUsingMask ()
 
virtual void SetIsResampleWholeImage (bool _arg)
 
virtual bool GetIsResampleWholeImage ()
 
virtual const TFixedImage * GetTransformedMovingImage () const
 
virtual const TFixedImage * GetTransformedFixedImage () const
 
double GetMeasureOfParameterChange (TransformParametersType lastP, TransformParametersType p)
 
- Public Member Functions inherited from itk::ImageToImageMetricWithConstraint< TFixedImage, TMovingImage >
virtual void SetDerivativeBridge (MetricDerivativeBridgeType *_arg)
 
virtual
MetricDerivativeBridgeType
GetDerivativeBridge ()
 
virtual void SetConstraint (ConstraintType *_arg)
 
virtual ConstraintTypeGetConstraint ()
 
virtual void SetWeightingFactor (double _arg)
 
virtual double GetWeightingFactor ()
 
virtual void SetUseConstraintGradient (bool _arg)
 
virtual bool GetUseConstraintGradient () const
 
virtual void SetPrintOutMetricEvaluation (bool _arg)
 
virtual bool GetPrintOutMetricEvaluation ()
 
virtual MeasureType GetValue (const TransformParametersType &parameters) const
 
virtual void GetConstraintDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const
 
virtual void GetDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const
 
virtual void GetValueAndDerivative (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &derivative) const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 MIImageToImageMetric ()
 
virtual ~MIImageToImageMetric ()
 
MeasureType FinalizeCostFunction ()
 
- Protected Member Functions inherited from itk::HistogramSimilarityMeasure< TFixedImage, TMovingImage >
 HistogramSimilarityMeasure ()
 
virtual ~HistogramSimilarityMeasure ()
 
void ResetCostFunction ()
 
void AggregateCostFunctionPair (FixedImagePixelType fixedValue, MovingImagePixelType movingValue)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
MeasureType MeanFixed () const
 
MeasureType MeanMoving () const
 
MeasureType VarianceFixed () const
 
MeasureType VarianceMoving () const
 
MeasureType Covariance () const
 
MeasureType EntropyFixed () const
 
MeasureType EntropyMoving () const
 
MeasureType JointEntropy () const
 
- Protected Member Functions inherited from itk::FiniteDifferenceGradientSimilarityMeasure< TFixedImage, TMovingImage >
 FiniteDifferenceGradientSimilarityMeasure ()
 
virtual ~FiniteDifferenceGradientSimilarityMeasure ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
- Protected Member Functions inherited from itk::SimilarityMeasure< TFixedImage, TMovingImage >
 SimilarityMeasure ()
 
virtual ~SimilarityMeasure ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual MeasureType GetSimilarity (const TransformParametersType &parameters) const
 
virtual void AggregateCostFunctionPairWithWeighting (FixedImagePixelType fixedValue, MovingImagePixelType movingValue, double weight)
 
void WriteImage (const TFixedImage *image, std::string filename) const
 
virtual MeasureType GetSymmetricSimilarity (const TransformParametersType &parameters)
 
virtual MeasureType GetSymmetricSimilarityAtHalfway (const TransformParametersType &parameters)
 
virtual MeasureType GetSimilarityUsingFixedAndMovingImageTransforms (const TransformParametersType &parameters)
 
virtual void InitializeSymmetricMetric ()
 
virtual void InitializeDistanceWeightings ()
 
- Protected Member Functions inherited from itk::ImageToImageMetricWithConstraint< TFixedImage, TMovingImage >
 ImageToImageMetricWithConstraint ()
 
virtual ~ImageToImageMetricWithConstraint ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual void GetCostFunctionDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const =0
 

Additional Inherited Members

- Static Public Attributes inherited from itk::SimilarityMeasure< TFixedImage, TMovingImage >
static const int SYMMETRIC_METRIC_AVERAGE
 
static const int SYMMETRIC_METRIC_MID_WAY
 
static const int SYMMETRIC_METRIC_BOTH_FIXED_AND_MOVING_TRANSFORM
 
- Protected Attributes inherited from itk::HistogramSimilarityMeasure< TFixedImage, TMovingImage >
HistogramSizeType m_HistogramSize
 
HistogramPointer m_Histogram
 
- Protected Attributes inherited from itk::SimilarityMeasure< TFixedImage, TMovingImage >
TFixedImage::Pointer m_TransformedMovingImage
 
TFixedImage::Pointer m_TransformedFixedImage
 
InterpolatorType::Pointer m_FixedImageInterpolator
 
InterpolatorType::Pointer m_MovingImageInterpolator
 
FixedImagePixelType m_FixedLowerBound
 
FixedImagePixelType m_FixedUpperBound
 
MovingImagePixelType m_MovingLowerBound
 
MovingImagePixelType m_MovingUpperBound
 
bool m_UseWeighting
 
double m_WeightingDistanceThreshold
 
MidwayImageType::Pointer m_MidwayImage
 
FixedDistanceMapImageFilterType::Pointer m_FixedDistanceMap
 
MovingDistanceMapImageFilterType::Pointer m_MovingDistanceMap
 
DistanceMapLinearInterpolatorType::Pointer m_FixedDistanceMapInterpolator
 
DistanceMapLinearInterpolatorType::Pointer m_MovingDistanceMapInterpolator
 
TransformType::Pointer m_FixedImageTransform
 
bool m_InitialiseIntensityBoundsUsingMask
 
bool m_IsResampleWholeImage
 
- Protected Attributes inherited from itk::ImageToImageMetricWithConstraint< TFixedImage, TMovingImage >
MetricDerivativePointer m_DerivativeBridge
 
ConstraintPointer m_Constraint
 
double m_WeightingFactor
 
bool m_UseConstraintGradient
 
bool m_PrintOutMetricEvaluation
 

Detailed Description

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

Implements Mutual Information of a histogram for a similarity measure.

Member Typedef Documentation

template<class TFixedImage , class TMovingImage >
typedef SmartPointer<const Self> itk::MIImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageType::PixelType itk::MIImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MeasureType itk::MIImageToImageMetric< TFixedImage, TMovingImage >::MeasureType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageType::PixelType itk::MIImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType
template<class TFixedImage , class TMovingImage >
typedef SmartPointer<Self> itk::MIImageToImageMetric< TFixedImage, TMovingImage >::Pointer
template<class TFixedImage , class TMovingImage >
typedef MIImageToImageMetric itk::MIImageToImageMetric< TFixedImage, TMovingImage >::Self

Standard class typedefs.

template<class TFixedImage , class TMovingImage >
typedef HistogramSimilarityMeasure<TFixedImage, TMovingImage> itk::MIImageToImageMetric< TFixedImage, TMovingImage >::Superclass

Constructor & Destructor Documentation

template<class TFixedImage , class TMovingImage >
itk::MIImageToImageMetric< TFixedImage, TMovingImage >::MIImageToImageMetric ( )
inlineprotected
template<class TFixedImage , class TMovingImage >
virtual itk::MIImageToImageMetric< TFixedImage, TMovingImage >::~MIImageToImageMetric ( )
inlineprotectedvirtual

Member Function Documentation

template<class TFixedImage , class TMovingImage >
MeasureType itk::MIImageToImageMetric< TFixedImage, TMovingImage >::FinalizeCostFunction ( )
inlineprotectedvirtual

In this method, we do any final aggregating, which basically means "evaluate the histogram". Filling the histogram is in the base class.

Implements itk::SimilarityMeasure< TFixedImage, TMovingImage >.

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

Run-time type information (and related methods).

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

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

Method for creation through the object factory.

template<class TFixedImage , class TMovingImage >
bool itk::MIImageToImageMetric< TFixedImage, TMovingImage >::ShouldBeMaximized ( )
inlinevirtual

MI should be Maximized.

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


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