ITK  4.4.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric > Class Template Reference

#include <itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h>

+ Inheritance diagram for itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >:
+ Collaboration diagram for itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >:

Detailed Description

template<class TDomainPartitioner, class TImageToImageMetric, class TCorrelationMetric>
class itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >

Processes points for CorrelationImageToImageMetricv4 GetValueAndDerivative.

Helper class for CorrelationImageToImageMetricv4 To compute the average pixel intensities of the fixed image and the moving image on the sampled points or inside the virtual image region: $ \bar f (CorrelationImageToImageMetricv4::m_AverageFix ) $ $ \bar m (CorrelationImageToImageMetricv4::m_AverageMov ) $.

Definition at line 33 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.

Classes

struct  InternalCumSumType
 

Public Types

typedef Superclass::AssociateType AssociateType
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::DerivativeType DerivativeType
 
typedef
Superclass::DerivativeValueType 
DerivativeValueType
 
typedef Superclass::DomainType DomainType
 
typedef
Superclass::FixedImageGradientType 
FixedImageGradientType
 
typedef
Superclass::FixedImagePixelType 
FixedImagePixelType
 
typedef
Superclass::FixedImagePointType 
FixedImagePointType
 
typedef
FixedTransformType::OutputPointType 
FixedOutputPointType
 
typedef
ImageToImageMetricv4Type::FixedTransformType 
FixedTransformType
 
typedef
Superclass::ImageToImageMetricv4Type 
ImageToImageMetricv4Type
 
typedef
Superclass::InternalComputationValueType 
InternalComputationValueType
 
typedef Superclass::MeasureType MeasureType
 
typedef
Superclass::MovingImageGradientType 
MovingImageGradientType
 
typedef
Superclass::MovingImagePixelType 
MovingImagePixelType
 
typedef
Superclass::MovingImagePointType 
MovingImagePointType
 
typedef
MovingTransformType::OutputPointType 
MovingOutputPointType
 
typedef
ImageToImageMetricv4Type::MovingTransformType 
MovingTransformType
 
typedef
Superclass::NumberOfParametersType 
NumberOfParametersType
 
typedef SmartPointer< SelfPointer
 
typedef
CorrelationImageToImageMetricv4GetValueAndDerivativeThreader 
Self
 
typedef
ImageToImageMetricv4GetValueAndDerivativeThreader
< TDomainPartitioner,
TImageToImageMetric > 
Superclass
 
typedef
Superclass::VirtualIndexType 
VirtualIndexType
 
typedef
Superclass::VirtualPointType 
VirtualPointType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

virtual void AfterThreadedExecution ()
 
virtual void BeforeThreadedExecution ()
 
 CorrelationImageToImageMetricv4GetValueAndDerivativeThreader ()
 
virtual bool ProcessPoint (const VirtualIndexType &virtualIndex, const VirtualPointType &virtualPoint, const FixedImagePointType &mappedFixedPoint, const FixedImagePixelType &mappedFixedPixelValue, const FixedImageGradientType &mappedFixedImageGradient, const MovingImagePointType &mappedMovingPoint, const MovingImagePixelType &mappedMovingPixelValue, const MovingImageGradientType &mappedMovingImageGradient, MeasureType &metricValueReturn, DerivativeType &localDerivativeReturn, const ThreadIdType threadID) const
 
virtual bool ProcessVirtualPoint (const VirtualIndexType &virtualIndex, const VirtualPointType &virtualPoint, const ThreadIdType threadId)
 

Private Member Functions

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

Private Attributes

TCorrelationMetric * m_CorrelationAssociate
 
std::vector< InternalCumSumTypem_InternalCumSumPerThread
 

Member Typedef Documentation

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::AssociateType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::AssociateType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef SmartPointer< const Self > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::ConstPointer
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::DerivativeType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::DerivativeType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::DerivativeValueType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::DerivativeValueType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::DomainType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::DomainType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::FixedImageGradientType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedImageGradientType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::FixedImagePixelType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedImagePixelType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::FixedImagePointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedImagePointType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef FixedTransformType::OutputPointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedOutputPointType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef ImageToImageMetricv4Type::FixedTransformType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedTransformType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::ImageToImageMetricv4Type itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::ImageToImageMetricv4Type
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::InternalComputationValueType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::InternalComputationValueType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::MeasureType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MeasureType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::MovingImageGradientType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingImageGradientType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::MovingImagePixelType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingImagePixelType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::MovingImagePointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingImagePointType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef MovingTransformType::OutputPointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingOutputPointType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef ImageToImageMetricv4Type::MovingTransformType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingTransformType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::NumberOfParametersType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::NumberOfParametersType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef SmartPointer< Self > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::Pointer
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef CorrelationImageToImageMetricv4GetValueAndDerivativeThreader itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::Self

Standard class typedefs.

Definition at line 38 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef ImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::Superclass
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::VirtualIndexType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::VirtualIndexType
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
typedef Superclass::VirtualPointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::VirtualPointType

Constructor & Destructor Documentation

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader ( )
inlineprotected
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader ( const Self )
private

Member Function Documentation

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
virtual void itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::AfterThreadedExecution ( )
protectedvirtual

Overload: Collects the results from each thread and sums them. Results are stored in the enclosing class m_Value and m_DerivativeResult. Behavior depends on m_AverageValueAndDerivativeByNumberOfValuePoints, m_NumberOfValidPoints, to average the value sum, and to average derivative sums for global transforms only (i.e. transforms without local support).

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
virtual void itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::BeforeThreadedExecution ( )
protectedvirtual

Overload: Resize and initialize per thread objects: number of valid points moving transform jacobian cross-correlation specific variables

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
virtual::itk::LightObject::Pointer itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::CreateAnother ( void  ) const
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
virtual const char* itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::GetNameOfClass ( ) const
virtual
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
static Pointer itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::New ( )
static
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
void itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::operator= ( const Self )
private
template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
virtual bool itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::ProcessPoint ( const VirtualIndexType virtualIndex,
const VirtualPointType virtualPoint,
const FixedImagePointType mappedFixedPoint,
const FixedImagePixelType mappedFixedPixelValue,
const FixedImageGradientType mappedFixedImageGradient,
const MovingImagePointType mappedMovingPoint,
const MovingImagePixelType mappedMovingPixelValue,
const MovingImageGradientType mappedMovingImageGradient,
MeasureType metricValueReturn,
DerivativeType localDerivativeReturn,
const ThreadIdType  threadID 
) const
protectedvirtual

This function computes the local voxel-wise contribution of the metric to the global integral of the metric/derivative.

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
virtual bool itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::ProcessVirtualPoint ( const VirtualIndexType virtualIndex,
const VirtualPointType virtualPoint,
const ThreadIdType  threadId 
)
protectedvirtual

Overload to avoid execution of adding entries to m_MeasurePerThread StorePointDerivativeResult() after this function calls ProcessPoint(). Method called by the threaders to process the given virtual point. This in turn calls TransformAndEvaluateFixedPoint, TransformAndEvaluateMovingPoint, and ProcessPoint.

Member Data Documentation

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
TCorrelationMetric* itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::m_CorrelationAssociate
private

Internal pointer to the metric object in use by this threader. This will avoid costly dynamic casting in tight loops.

Definition at line 142 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.

template<class TDomainPartitioner , class TImageToImageMetric , class TCorrelationMetric >
std::vector< InternalCumSumType > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::m_InternalCumSumPerThread
mutableprivate

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