diff --git a/Components/Metrics/PCAMetric/itkPCAMetric.hxx b/Components/Metrics/PCAMetric/itkPCAMetric.hxx index 5c52b2e8c..8849de8a9 100644 --- a/Components/Metrics/PCAMetric/itkPCAMetric.hxx +++ b/Components/Metrics/PCAMetric/itkPCAMetric.hxx @@ -236,7 +236,7 @@ PCAMetric::GetValue(const TransformParametersType & p if (sampleOk) { - sampleOk = this->EvaluateMovingImageValueAndDerivative(mappedPoint, movingImageValue, 0); + sampleOk = this->Superclass::EvaluateMovingImageValueAndDerivative(mappedPoint, movingImageValue, nullptr); } if (sampleOk) @@ -474,7 +474,7 @@ PCAMetric::GetValueAndDerivative(const TransformParam if (sampleOk) { - sampleOk = this->EvaluateMovingImageValueAndDerivative(mappedPoint, movingImageValue, 0); + sampleOk = this->Superclass::EvaluateMovingImageValueAndDerivative(mappedPoint, movingImageValue, nullptr); } if (sampleOk) @@ -672,7 +672,7 @@ PCAMetric::GetValueAndDerivative(const TransformParam this->GetFixedImage()->TransformContinuousIndexToPhysicalPoint(voxelCoord, fixedPoint); const MovingImagePointType mappedPoint = this->TransformPoint(fixedPoint); - this->EvaluateMovingImageValueAndDerivative(mappedPoint, movingImageValue, &movingImageDerivative); + this->Superclass::EvaluateMovingImageValueAndDerivative(mappedPoint, movingImageValue, &movingImageDerivative); /** Get the TransformJacobian dT/dmu */ this->EvaluateTransformJacobian(fixedPoint, jacobian, nzjis[d]);