18 #ifndef itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader_h
19 #define itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader_h
34 template <
typename TDomainPartitioner,
typename TImageToImageMetric,
typename TCorrelationMetric>
51 using typename Superclass::DomainType;
52 using typename Superclass::AssociateType;
55 using typename Superclass::VirtualIndexType;
56 using typename Superclass::VirtualPointType;
57 using typename Superclass::FixedImagePointType;
58 using typename Superclass::FixedImagePixelType;
59 using typename Superclass::FixedImageGradientType;
60 using typename Superclass::MovingImagePointType;
61 using typename Superclass::MovingImagePixelType;
62 using typename Superclass::MovingImageGradientType;
63 using typename Superclass::MeasureType;
64 using typename Superclass::DerivativeType;
65 using typename Superclass::DerivativeValueType;
72 using typename Superclass::InternalComputationValueType;
73 using typename Superclass::NumberOfParametersType;
85 BeforeThreadedExecution()
override;
95 AfterThreadedExecution()
override;
103 ProcessVirtualPoint(
const VirtualIndexType & virtualIndex,
104 const VirtualPointType & virtualPoint,
111 ProcessPoint(
const VirtualIndexType & virtualIndex,
112 const VirtualPointType & virtualPoint,
113 const FixedImagePointType & mappedFixedPoint,
114 const FixedImagePixelType & fixedImageValue,
115 const FixedImageGradientType & mappedFixedImageGradient,
116 const MovingImagePointType & mappedMovingPoint,
117 const MovingImagePixelType & movingImageValue,
118 const MovingImageGradientType & movingImageGradient,
119 MeasureType & metricValueReturn,
120 DerivativeType & localDerivativeReturn,
135 InternalComputationValueType
fm;
136 InternalComputationValueType
m2;
137 InternalComputationValueType
f2;
138 InternalComputationValueType
m;
139 InternalComputationValueType
f;
144 itkPadStruct(ITK_CACHE_LINE_ALIGNMENT,
146 PaddedCorrelationMetricValueDerivativePerThreadStruct);
147 itkAlignedTypedef(ITK_CACHE_LINE_ALIGNMENT,
148 PaddedCorrelationMetricValueDerivativePerThreadStruct,
149 AlignedCorrelationMetricValueDerivativePerThreadStruct);
151 std::unique_ptr<AlignedCorrelationMetricValueDerivativePerThreadStruct[]>
156 TCorrelationMetric * m_CorrelationAssociate{};
161 #ifndef ITK_MANUAL_INSTANTIATION
162 # include "itkCorrelationImageToImageMetricv4GetValueAndDerivativeThreader.hxx"