76 using typename Superclass::CoordinateRepresentationType;
77 using typename Superclass::MovingImageType;
78 using typename Superclass::MovingImagePixelType;
79 using typename Superclass::MovingImageConstPointer;
80 using typename Superclass::FixedImageType;
81 using typename Superclass::FixedImageConstPointer;
82 using typename Superclass::FixedImageRegionType;
83 using typename Superclass::TransformType;
84 using typename Superclass::TransformPointer;
85 using typename Superclass::InputPointType;
86 using typename Superclass::OutputPointType;
87 using typename Superclass::TransformParametersType;
88 using typename Superclass::TransformJacobianType;
90 using typename Superclass::InterpolatorType;
91 using typename Superclass::InterpolatorPointer;
92 using typename Superclass::RealType;
93 using typename Superclass::GradientPixelType;
94 using typename Superclass::GradientImageType;
95 using typename Superclass::GradientImagePointer;
100 using typename Superclass::MeasureType;
101 using typename Superclass::DerivativeType;
103 using typename Superclass::ParametersType;
125 GetValue(
const TransformParametersType & parameters)
const override;
129 GetDerivative(
const TransformParametersType & parameters, DerivativeType & derivative)
const override;
135 DerivativeType & Derivative)
const;
140 DerivativeType & Derivative)
const override;
147 itkSetMacro(ForegroundValue, RealType);
148 itkGetConstReferenceMacro(ForegroundValue, RealType);
154 itkSetMacro(UseForegroundValue,
bool);
161 itkSetMacro(Complement,
bool);
162 itkGetConstReferenceMacro(Complement,
bool);
163 itkBooleanMacro(Complement);
166 itkSetMacro(Epsilon, RealType);
167 itkGetConstReferenceMacro(Epsilon, RealType);
175 PrintSelf(std::ostream & os, Indent indent)
const override;
195 const RealType movingImageValue,
196 std::size_t & fixedForegroundArea,
197 std::size_t & movingForegroundArea,
198 std::size_t & intersection,
199 const DerivativeType & imageJacobian,
201 DerivativeType & sum1,
202 DerivativeType & sum2)
const;
220 static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION
224 bool m_UseForegroundValue{
true };
225 RealType m_ForegroundValue{ 1.0 };
226 RealType m_Epsilon{ 1e-3 };
227 bool m_Complement{
true };
253 PaddedKappaGetValueAndDerivativePerThreadStruct);
255 PaddedKappaGetValueAndDerivativePerThreadStruct,
256 AlignedKappaGetValueAndDerivativePerThreadStruct);
257 mutable std::vector<AlignedKappaGetValueAndDerivativePerThreadStruct>
258 m_KappaGetValueAndDerivativePerThreadVariables{};
void UpdateValueAndDerivativeTerms(const RealType fixedImageValue, const RealType movingImageValue, std::vcl_size_t &fixedForegroundArea, std::vcl_size_t &movingForegroundArea, std::vcl_size_t &intersection, const DerivativeType &imageJacobian, const NonZeroJacobianIndicesType &nzji, DerivativeType &sum1, DerivativeType &sum2) const