Closed N-Dekker closed 2 months ago
The image created by ITK's GradientImageFilter
(m_GradientImage) is used in EvaluateMovingImageValueAndDerivativeWithOptionalThreadId
: https://github.com/SuperElastix/elastix/blob/98aa401157d5608b47a3f89892e119c74b0c88fe/Common/CostFunctions/itkAdvancedImageToImageMetric.hxx#L461-L498
Note that AdvancedKappaStatisticImageToImageMetric does not use ITK's GradientImageFilter
. It assigns its own manually created image to m_GradientImage.
The metrics (currently) only use ITK's
GradientImageFilter
when the interpolator is a NearestNeighbor interpolator.