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

#include <itkCombinationImageToImageMetric.h>

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

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
Superclass::CoordinateRepresentationType 
CoordinateRepresentationType
typedef Superclass::DerivativeType DerivativeType
typedef
Superclass::FixedImageConstPointer 
FixedImageConstPointer
typedef
Superclass::FixedImageMaskPointer 
FixedImageMaskPointer
typedef
Superclass::FixedImageMaskType 
FixedImageMaskType
typedef FixedImageType::PixelType FixedImagePixelType
typedef
Superclass::FixedImageRegionType 
FixedImageRegionType
typedef Superclass::FixedImageType FixedImageType
typedef PointSet
< CoordinateRepresentationType,
TFixedImage::ImageDimension,
DefaultStaticMeshTraits
< CoordinateRepresentationType,
TFixedImage::ImageDimension,
TFixedImage::ImageDimension,
CoordinateRepresentationType,
CoordinateRepresentationType,
CoordinateRepresentationType > > 
FixedPointSetType
typedef
Superclass::GradientImageFilterPointer 
GradientImageFilterPointer
typedef
Superclass::GradientImageFilterType 
GradientImageFilterType
typedef
Superclass::GradientImagePointer 
GradientImagePointer
typedef
Superclass::GradientImageType 
GradientImageType
typedef
Superclass::GradientPixelType 
GradientPixelType
typedef Superclass::HessianType HessianType
typedef
Superclass::HessianValueType 
HessianValueType
typedef ImageMetricType::Pointer ImageMetricPointer
typedef Superclass ImageMetricType
typedef Superclass::InputPointType InputPointType
typedef
Superclass::InterpolatorPointer 
InterpolatorPointer
typedef
Superclass::InterpolatorType 
InterpolatorType
typedef Superclass::MeasureType MeasureType
typedef
Superclass::MovingImageConstPointer 
MovingImageConstPointer
typedef FixedArray< double,
itkGetStaticConstMacro(MovingImageDimension) > 
MovingImageDerivativeScalesType
typedef
Superclass::MovingImageMaskPointer 
MovingImageMaskPointer
typedef
Superclass::MovingImageMaskType 
MovingImageMaskType
typedef
Superclass::MovingImagePixelType 
MovingImagePixelType
typedef MovingImageType::RegionType MovingImageRegionType
typedef Superclass::MovingImageType MovingImageType
typedef PointSet
< CoordinateRepresentationType,
TMovingImage::ImageDimension,
DefaultStaticMeshTraits
< CoordinateRepresentationType,
TMovingImage::ImageDimension,
TMovingImage::ImageDimension,
CoordinateRepresentationType,
CoordinateRepresentationType,
CoordinateRepresentationType > > 
MovingPointSetType
typedef Superclass::OutputPointType OutputPointType
typedef Superclass::ParametersType ParametersType
typedef SmartPointer< SelfPointer
typedef
SingleValuedPointSetToPointSetMetric
< FixedPointSetType,
MovingPointSetType
PointSetMetricType
typedef Superclass::RealType RealType
typedef
CombinationImageToImageMetric 
Self
typedef
SingleValuedCostFunctionType::Pointer 
SingleValuedCostFunctionPointer
typedef SingleValuedCostFunction SingleValuedCostFunctionType
typedef
AdvancedImageToImageMetric
< TFixedImage, TMovingImage > 
Superclass
typedef
Superclass::TransformJacobianType 
TransformJacobianType
typedef
Superclass::TransformParametersType 
TransformParametersType
typedef TransformType::Pointer TransformPointer
typedef
Superclass::AdvancedTransformType 
TransformType

Public Member Functions

virtual const char * GetClassName () const
virtual void GetDerivative (const ParametersType &parameters, DerivativeType &derivative) const
virtual const FixedImageTypeGetFixedImage (unsigned int pos) const
virtual const FixedImageTypeGetFixedImage (void) const
virtual const FixedImageMaskTypeGetFixedImageMask (unsigned int pos) const
virtual const FixedImageMaskTypeGetFixedImageMask (void) const
virtual const
FixedImageRegionType
GetFixedImageRegion (unsigned int pos) const
virtual const
FixedImageRegionType
GetFixedImageRegion (void) const
virtual const InterpolatorTypeGetInterpolator (unsigned int pos) const
virtual const InterpolatorTypeGetInterpolator (void) const
SingleValuedCostFunctionTypeGetMetric (unsigned int count) const
std::vcl_size_t GetMetricComputationTime (unsigned int pos) const
const DerivativeTypeGetMetricDerivative (unsigned int pos) const
double GetMetricDerivativeMagnitude (unsigned int pos) const
double GetMetricRelativeWeight (unsigned int pos) const
MeasureType GetMetricValue (unsigned int pos) const
double GetMetricWeight (unsigned int pos) const
virtual const MovingImageTypeGetMovingImage (unsigned int pos) const
virtual const MovingImageTypeGetMovingImage (void) const
virtual const MovingImageMaskTypeGetMovingImageMask (unsigned int pos) const
virtual const MovingImageMaskTypeGetMovingImageMask (void) const
virtual unsigned long GetMTime () const
virtual unsigned int GetNumberOfMetrics () const
virtual const unsigned long & GetNumberOfPixelsCounted (void) const
virtual void GetSelfHessian (const TransformParametersType &parameters, HessianType &H) const
virtual const TransformTypeGetTransform (unsigned int pos) const
virtual const TransformTypeGetTransform (void) const
bool GetUseMetric (const unsigned int pos) const
virtual bool GetUseRelativeWeights ()
virtual MeasureType GetValue (const ParametersType &parameters) const
virtual void GetValueAndDerivative (const ParametersType &parameters, MeasureType &value, DerivativeType &derivative) const
virtual void Initialize (void) throw ( ExceptionObject )
 itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension)
 itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
virtual void SetFixedImage (const FixedImageType *_arg)
virtual void SetFixedImage (const FixedImageType *_arg, unsigned int pos)
virtual void SetFixedImageMask (FixedImageMaskType *_arg)
virtual void SetFixedImageMask (FixedImageMaskType *_arg, unsigned int pos)
virtual void SetFixedImageRegion (const FixedImageRegionType _arg)
virtual void SetFixedImageRegion (const FixedImageRegionType _arg, unsigned int pos)
virtual void SetInterpolator (InterpolatorType *_arg)
virtual void SetInterpolator (InterpolatorType *_arg, unsigned int pos)
void SetMetric (SingleValuedCostFunctionType *metric, unsigned int pos)
void SetMetricRelativeWeight (double weight, unsigned int pos)
void SetMetricWeight (double weight, unsigned int pos)
virtual void SetMovingImage (const MovingImageType *_arg)
virtual void SetMovingImage (const MovingImageType *_arg, unsigned int pos)
virtual void SetMovingImageMask (MovingImageMaskType *_arg)
virtual void SetMovingImageMask (MovingImageMaskType *_arg, unsigned int pos)
void SetNumberOfMetrics (unsigned int count)
virtual void SetTransform (TransformType *_arg)
virtual void SetTransform (TransformType *_arg, unsigned int pos)
void SetUseAllMetrics (void)
void SetUseMetric (const bool use, const unsigned int pos)
virtual void SetUseRelativeWeights (bool _arg)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 CombinationImageToImageMetric ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~CombinationImageToImageMetric ()

Protected Attributes

std::vector< std::vcl_size_t > m_MetricComputationTime
std::vector< DerivativeTypem_MetricDerivatives
std::vector< doublem_MetricDerivativesMagnitude
std::vector< doublem_MetricRelativeWeights
std::vector
< SingleValuedCostFunctionPointer
m_Metrics
std::vector< MeasureTypem_MetricValues
std::vector< doublem_MetricWeights
DerivativeType m_NullDerivative
FixedImageRegionType m_NullFixedImageRegion
unsigned int m_NumberOfMetrics
std::vector< boolm_UseMetric
bool m_UseRelativeWeights

Private Member Functions

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

Detailed Description

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

Combines multiple metrics.

This metric is meant to be used in the MultiMetricMultiResolutionImageRegistrationMethod.

NB: while it may seem not logical that the SetInterpolator(arg) sets the interpolator in all submetrics whereas the GetInterpolator(void) returns GetInterpolator(0) it is logical. If you set the interpolator the same in all metrics, you will receive the correct interpolator with GetInterpolator(0). If you set the interpolator differently in all metrics, the most logical action is to return GetInterpolator(0) when GetInterpolator() is invoked.

Note: If you use Set{Transform,Interpolator etc}(0) or Set{Transform,Interpolator}(), the member variables of the superclass m_{Transform,Interpolator} are set as well. So, it is not strictly necessary to reimplement the functions Get{Transform,Interpolator}(), which return Get{Transform,Interpolator}(0), which would result in the same as returning m_{Transform,Interpolator} anyway. However, if Metric[0] is changed externally the m_{Transform, Interpolator} are not up to date anymore. That's why we chose to reimplement the Get{Transform,Interpolator}() methods.

Definition at line 56 of file itkCombinationImageToImageMetric.h.


Member Typedef Documentation

template<class TFixedImage , class TMovingImage >
typedef SmartPointer<const Self> itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::CoordinateRepresentationType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::CoordinateRepresentationType

Typedefs from the superclass.

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

Definition at line 80 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef Superclass::DerivativeType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType
template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageConstPointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageMaskPointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImageMaskPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageMaskType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImageMaskType
template<class TFixedImage , class TMovingImage >
typedef FixedImageType::PixelType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType
template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageRegionType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImageRegionType
template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType
template<class TFixedImage , class TMovingImage >
typedef PointSet< CoordinateRepresentationType, TFixedImage::ImageDimension, DefaultStaticMeshTraits< CoordinateRepresentationType, TFixedImage::ImageDimension, TFixedImage::ImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedPointSetType

Typedef for the PointSetMetric.

Definition at line 148 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImageFilterPointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GradientImageFilterPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImageFilterType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GradientImageFilterType
template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImagePointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GradientImagePointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImageType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GradientImageType
template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientPixelType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType
template<class TFixedImage , class TMovingImage >
typedef Superclass::HessianType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::HessianType
template<class TFixedImage , class TMovingImage >
typedef Superclass::HessianValueType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::HessianValueType

Some typedefs for computing the SelfHessian

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

Definition at line 113 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef ImageMetricType::Pointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ImageMetricPointer

Definition at line 131 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef Superclass itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ImageMetricType

typedef typename Superclass::ImageSamplerType ImageSamplerType; typedef typename Superclass::ImageSamplerPointer ImageSamplerPointer; typedef typename Superclass::ImageSampleContainerType ImageSampleContainerType; typedef typename Superclass::ImageSampleContainerPointer ImageSampleContainerPointer; typedef typename Superclass::FixedImageLimiterType FixedImageLimiterType; typedef typename Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType; typedef typename Superclass::MovingImageLimiterType MovingImageLimiterType; typedef typename Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType; typedef typename Superclass::ScalarType ScalarType; typedef typename Superclass::AdvancedTransformType AdvancedTransformType; Typedefs for the metrics.

Definition at line 130 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef Superclass::InputPointType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::InputPointType
template<class TFixedImage , class TMovingImage >
typedef Superclass::InterpolatorPointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::InterpolatorType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MeasureType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MeasureType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageConstPointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer
template<class TFixedImage , class TMovingImage >
typedef FixedArray< double, itkGetStaticConstMacro(MovingImageDimension) > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeScalesType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageMaskPointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageMaskPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageMaskType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageMaskType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImagePixelType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType
template<class TFixedImage , class TMovingImage >
typedef MovingImageType::RegionType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType
template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType
template<class TFixedImage , class TMovingImage >
typedef PointSet< CoordinateRepresentationType, TMovingImage::ImageDimension, DefaultStaticMeshTraits< CoordinateRepresentationType, TMovingImage::ImageDimension, TMovingImage::ImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingPointSetType

Definition at line 156 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef Superclass::OutputPointType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType
template<class TFixedImage , class TMovingImage >
typedef Superclass::ParametersType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ParametersType
template<class TFixedImage , class TMovingImage >
typedef SmartPointer<Self> itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::Pointer
template<class TFixedImage , class TMovingImage >
typedef SingleValuedPointSetToPointSetMetric< FixedPointSetType, MovingPointSetType > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::PointSetMetricType

Definition at line 158 of file itkCombinationImageToImageMetric.h.

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

Standard class typedefs.

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

Definition at line 61 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef SingleValuedCostFunctionType::Pointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SingleValuedCostFunctionPointer

Definition at line 133 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef SingleValuedCostFunction itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SingleValuedCostFunctionType

Definition at line 132 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
typedef AdvancedImageToImageMetric< TFixedImage, TMovingImage > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::Superclass
template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformJacobianType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType
template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformParametersType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType
template<class TFixedImage , class TMovingImage >
typedef TransformType::Pointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer
template<class TFixedImage , class TMovingImage >
typedef Superclass::AdvancedTransformType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::TransformType

Constructor & Destructor Documentation

template<class TFixedImage , class TMovingImage >
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::CombinationImageToImageMetric ( ) [protected]
template<class TFixedImage , class TMovingImage >
virtual itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::~CombinationImageToImageMetric ( ) [inline, protected, virtual]

Definition at line 390 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::CombinationImageToImageMetric ( const Self ) [private]

Member Function Documentation

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

Run-time type information (and related methods).

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

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetDerivative ( const ParametersType parameters,
DerivativeType derivative 
) const [virtual]

The GetDerivative()-method.

template<class TFixedImage , class TMovingImage >
virtual const FixedImageType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetFixedImage ( unsigned int  pos) const [virtual]

Returns the fixedImage set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned

template<class TFixedImage , class TMovingImage >
virtual const FixedImageType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetFixedImage ( void  ) const [inline, virtual]

Return FixedImage 0

Definition at line 279 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
virtual const FixedImageMaskType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetFixedImageMask ( unsigned int  pos) const [virtual]

Returns the fixedImageMask set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned

template<class TFixedImage , class TMovingImage >
virtual const FixedImageMaskType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetFixedImageMask ( void  ) const [inline, virtual]

Return FixedImageMask 0

Definition at line 296 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
virtual const FixedImageRegionType& itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetFixedImageRegion ( unsigned int  pos) const [virtual]

Returns the fixedImageRegion set in a specific metric. If the submetric is a singlevalued costfunction a region with size zero will be returned

template<class TFixedImage , class TMovingImage >
virtual const FixedImageRegionType& itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetFixedImageRegion ( void  ) const [inline, virtual]

Return FixedImageRegion 0

Definition at line 313 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
virtual const InterpolatorType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetInterpolator ( unsigned int  pos) const [virtual]

Returns the interpolator set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned.

template<class TFixedImage , class TMovingImage >
virtual const InterpolatorType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetInterpolator ( void  ) const [inline, virtual]

Return Interpolator 0

Definition at line 262 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
SingleValuedCostFunctionType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetric ( unsigned int  count) const

Get metric i.

template<class TFixedImage , class TMovingImage >
std::vcl_size_t itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricComputationTime ( unsigned int  pos) const

Get the last computed derivative magnitude for metric i.

template<class TFixedImage , class TMovingImage >
const DerivativeType& itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricDerivative ( unsigned int  pos) const

Get the last computed derivative for metric i.

template<class TFixedImage , class TMovingImage >
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricDerivativeMagnitude ( unsigned int  pos) const

Get the last computed derivative magnitude for metric i.

template<class TFixedImage , class TMovingImage >
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricRelativeWeight ( unsigned int  pos) const

Get the relative weight for metric i.

template<class TFixedImage , class TMovingImage >
MeasureType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricValue ( unsigned int  pos) const

Get the last computed value for metric i.

template<class TFixedImage , class TMovingImage >
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricWeight ( unsigned int  pos) const

Get the weight for metric i.

template<class TFixedImage , class TMovingImage >
virtual const MovingImageType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMovingImage ( unsigned int  pos) const [virtual]

Returns the movingImage set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned

template<class TFixedImage , class TMovingImage >
virtual const MovingImageType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMovingImage ( void  ) const [inline, virtual]

Return MovingImage 0

Definition at line 330 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
virtual const MovingImageMaskType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMovingImageMask ( unsigned int  pos) const [virtual]

Returns the movingImageMask set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned

template<class TFixedImage , class TMovingImage >
virtual const MovingImageMaskType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMovingImageMask ( void  ) const [inline, virtual]

Return MovingImageMask 0

Definition at line 347 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
virtual unsigned long itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMTime ( ) const [virtual]

Method to return the latest modified time of this object or any of its cached ivars.

template<class TFixedImage , class TMovingImage >
virtual unsigned int itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetNumberOfMetrics ( ) const [virtual]

Get the number of metrics to combine.

template<class TFixedImage , class TMovingImage >
virtual const unsigned long& itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetNumberOfPixelsCounted ( void  ) const [virtual]

Get the number of pixels considered in the computation. Return the sum of pixels counted by all metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetSelfHessian ( const TransformParametersType parameters,
HessianType H 
) const [virtual]

Experimental feature: compute SelfHessian.

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

template<class TFixedImage , class TMovingImage >
virtual const TransformType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetTransform ( unsigned int  pos) const [virtual]

Returns the transform set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned.

template<class TFixedImage , class TMovingImage >
virtual const TransformType* itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetTransform ( void  ) const [inline, virtual]

Return Transform 0

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

Definition at line 245 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
bool itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetUseMetric ( const unsigned int  pos) const

Get if this metric is used.

template<class TFixedImage , class TMovingImage >
virtual bool itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetUseRelativeWeights ( ) [virtual]
template<class TFixedImage , class TMovingImage >
virtual MeasureType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetValue ( const ParametersType parameters) const [virtual]

Combine all sub metrics by adding them. The GetValue()-method.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivative ( const ParametersType parameters,
MeasureType value,
DerivativeType derivative 
) const [virtual]
template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::Initialize ( void  ) throw ( ExceptionObject ) [virtual]

Pass initialization to all sub metrics.

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

template<class TFixedImage , class TMovingImage >
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( MovingImageDimension  ,
unsigned  int,
TMovingImage::ImageDimension   
)

Constants for the image dimensions

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

template<class TFixedImage , class TMovingImage >
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned  int,
TFixedImage::ImageDimension   
)
template<class TFixedImage , class TMovingImage >
static Pointer itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::New ( ) [static]

Define the New() method

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::operator= ( const Self ) [private]
template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected]
template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetFixedImage ( const FixedImageType _arg) [virtual]

Pass the fixed image to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetFixedImage ( const FixedImageType _arg,
unsigned int  pos 
) [virtual]

Pass a fixed image to a specific metric

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetFixedImageMask ( FixedImageMaskType _arg) [virtual]

Pass the fixed image mask to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetFixedImageMask ( FixedImageMaskType _arg,
unsigned int  pos 
) [virtual]

Pass a fixed image mask to a specific metric

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetFixedImageRegion ( const FixedImageRegionType  _arg) [virtual]

Pass the fixed image region to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetFixedImageRegion ( const FixedImageRegionType  _arg,
unsigned int  pos 
) [virtual]

Pass a fixed image region to a specific metric.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetInterpolator ( InterpolatorType _arg) [virtual]

Pass the interpolator to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetInterpolator ( InterpolatorType _arg,
unsigned int  pos 
) [virtual]

Pass an interpolator to a specific metric

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMetric ( SingleValuedCostFunctionType metric,
unsigned int  pos 
)

Set metric i. It may be a SingleValuedCostFunction, instead of a ImageToImageMetric, but the first one should be an ImageToImageMetric in all cases.

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMetricRelativeWeight ( double  weight,
unsigned int  pos 
)

Set the relative weight for metric i.

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMetricWeight ( double  weight,
unsigned int  pos 
)

Set the weight for metric i.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMovingImage ( const MovingImageType _arg) [virtual]

Pass the moving image to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMovingImage ( const MovingImageType _arg,
unsigned int  pos 
) [virtual]

Pass a moving image to a specific metric

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMovingImageMask ( MovingImageMaskType _arg) [virtual]

Pass the moving image mask to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMovingImageMask ( MovingImageMaskType _arg,
unsigned int  pos 
) [virtual]

Pass a moving image mask to a specific metric

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetNumberOfMetrics ( unsigned int  count)

Get and set the metrics and their weights. Set the number of metrics to combine.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetTransform ( TransformType _arg) [virtual]

Set/Get functions for the metric components Pass the transform to all sub metrics.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetTransform ( TransformType _arg,
unsigned int  pos 
) [virtual]

Pass a transform to a specific metric. Only use this if you really know what you are doing.

In fact, in general it makes no sense to specify a different transform for every metric, because in the GetValue/GetDerivative methods, the same set of parameters will be used in all cases. Also, SetTransformParameters and GetNumberOfParameters may give unpredictable results if you use this method. They only refer to the first transform.

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetUseAllMetrics ( void  )

Use all metrics.

template<class TFixedImage , class TMovingImage >
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetUseMetric ( const bool  use,
const unsigned int  pos 
)

Select which metrics are used. This is useful in case you want to compute a certain measure, but not actually use it during the registration. By default all metrics that are set, are also used.

template<class TFixedImage , class TMovingImage >
virtual void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetUseRelativeWeights ( bool  _arg) [virtual]

Set and Get the UseRelativeWeights variable.


Field Documentation

template<class TFixedImage , class TMovingImage >
std::vector< std::vcl_size_t > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_MetricComputationTime [mutable, protected]

Definition at line 403 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< DerivativeType > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_MetricDerivatives [mutable, protected]

Definition at line 401 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< double > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_MetricDerivativesMagnitude [mutable, protected]

Definition at line 402 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< double > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_MetricRelativeWeights [protected]

Definition at line 397 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< SingleValuedCostFunctionPointer > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_Metrics [protected]

Definition at line 395 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< MeasureType > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_MetricValues [mutable, protected]

Definition at line 400 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< double > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_MetricWeights [protected]

Definition at line 396 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
DerivativeType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_NullDerivative [protected]

Definition at line 407 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
FixedImageRegionType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_NullFixedImageRegion [protected]

Dummy image region and derivatives.

Definition at line 406 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
unsigned int itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_NumberOfMetrics [protected]

Store the metrics and the corresponding weights.

Definition at line 394 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
std::vector< bool > itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_UseMetric [protected]

Definition at line 399 of file itkCombinationImageToImageMetric.h.

template<class TFixedImage , class TMovingImage >
bool itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::m_UseRelativeWeights [protected]

Definition at line 398 of file itkCombinationImageToImageMetric.h.



Generated on 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo