From 1356e46d47e4f8750eaed7404affeed1ecfb4fd6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 14 Jun 2025 14:52:52 -0400 Subject: [PATCH] correct PHRASE metric --- MagickCore/compare.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MagickCore/compare.c b/MagickCore/compare.c index b69d9079a2..1dfcde2006 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -3870,8 +3870,7 @@ static Image *PhaseSimilarityImage(const Image *image,const Image *reconstruct, } double - maxima = 0.0, - normalization = 0.0; + maxima = 0.0; Image *correlation_image = (Image *) NULL, @@ -3973,10 +3972,6 @@ static Image *PhaseSimilarityImage(const Image *image,const Image *reconstruct, gamma_image=DestroyImage(gamma_image); if (phase_image == (Image *) NULL) ThrowPhaseSimilarityException(); - normalization=((double) image->columns*image->rows)/((double) - reconstruct->columns*reconstruct->rows); - status=SIMMultiplyImage(phase_image,normalization, - (const ChannelStatistics *) NULL,exception); (void) ResetImagePage(phase_image,"0x0+0+0"); /* Identify the maxima value in the correlation image and its location.