mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
correct PHRASE metric
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user