ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h>
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: .
Definition at line 33 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
Classes | |
struct | CorrelationMetricValueDerivativePerThreadStruct |
Public Types | |
typedef Superclass::AssociateType | AssociateType |
typedef SmartPointer< const Self > | ConstPointer |
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< Self > | Pointer |
typedef CorrelationImageToImageMetricv4GetValueAndDerivativeThreader | Self |
typedef ImageToImageMetricv4GetValueAndDerivativeThreader < TDomainPartitioner, TImageToImageMetric > | Superclass |
typedef Superclass::VirtualIndexType | VirtualIndexType |
typedef Superclass::VirtualPointType | VirtualPointType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
virtual void | AfterThreadedExecution () override |
virtual void | BeforeThreadedExecution () override |
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 override |
virtual bool | ProcessVirtualPoint (const VirtualIndexType &virtualIndex, const VirtualPointType &virtualPoint, const ThreadIdType threadId) override |
virtual | ~CorrelationImageToImageMetricv4GetValueAndDerivativeThreader () override |
Private Member Functions | |
itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedCorrelationMetricValueDerivativePerThreadStruct, AlignedCorrelationMetricValueDerivativePerThreadStruct) | |
itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, CorrelationMetricValueDerivativePerThreadStruct, PaddedCorrelationMetricValueDerivativePerThreadStruct) | |
Private Attributes | |
TCorrelationMetric * | m_CorrelationAssociate |
AlignedCorrelationMetricValueDerivativePerThreadStruct * | m_CorrelationMetricValueDerivativePerThreadVariables |
typedef Superclass::AssociateType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::AssociateType |
Definition at line 48 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef SmartPointer< const Self > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::ConstPointer |
Definition at line 41 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::DerivativeType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::DerivativeType |
Definition at line 60 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::DerivativeValueType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::DerivativeValueType |
Definition at line 61 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::DomainType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::DomainType |
Definition at line 45 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::FixedImageGradientType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedImageGradientType |
Definition at line 55 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::FixedImagePixelType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedImagePixelType |
Definition at line 54 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::FixedImagePointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedImagePointType |
Definition at line 53 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef FixedTransformType::OutputPointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedOutputPointType |
Definition at line 64 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef ImageToImageMetricv4Type::FixedTransformType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::FixedTransformType |
Definition at line 63 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::ImageToImageMetricv4Type itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::ImageToImageMetricv4Type |
Definition at line 50 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::InternalComputationValueType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::InternalComputationValueType |
Definition at line 68 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::MeasureType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MeasureType |
Definition at line 59 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::MovingImageGradientType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingImageGradientType |
Definition at line 58 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::MovingImagePixelType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingImagePixelType |
Definition at line 57 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::MovingImagePointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingImagePointType |
Definition at line 56 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef MovingTransformType::OutputPointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingOutputPointType |
Definition at line 66 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef ImageToImageMetricv4Type::MovingTransformType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::MovingTransformType |
Definition at line 65 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::NumberOfParametersType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::NumberOfParametersType |
Definition at line 69 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef SmartPointer< Self > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::Pointer |
Definition at line 40 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef CorrelationImageToImageMetricv4GetValueAndDerivativeThreader itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::Self |
Standard class typedefs.
Definition at line 38 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef ImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric > itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::Superclass |
Definition at line 39 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::VirtualIndexType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::VirtualIndexType |
Definition at line 51 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
typedef Superclass::VirtualPointType itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::VirtualPointType |
Definition at line 52 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
|
protected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
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).
|
overrideprotectedvirtual |
Overload: Resize and initialize per thread objects: number of valid points moving transform jacobian cross-correlation specific variables
virtual::itk::LightObject::Pointer itk::CorrelationImageToImageMetricv4GetValueAndDerivativeThreader< TDomainPartitioner, TImageToImageMetric, TCorrelationMetric >::CreateAnother | ( | ) | const |
|
virtual |
|
private |
|
private |
|
static |
|
overrideprotectedvirtual |
This function computes the local voxel-wise contribution of the metric to the global integral of the metric/derivative.
|
overrideprotectedvirtual |
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
.
|
private |
Internal pointer to the metric object in use by this threader. This will avoid costly dynamic casting in tight loops.
Definition at line 146 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.
|
mutableprivate |
Definition at line 142 of file itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.h.