mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-06-12 15:37:14 +02:00
correlation dimension must match that of the input image
This commit is contained in:
@@ -3383,9 +3383,6 @@ static Image *MSESimilarityImage(const Image *image,const Image *reconstruct,
|
||||
(void) ResetImagePage(mse_image,"0x0+0+0");
|
||||
(void) ClampImage(mse_image,exception);
|
||||
status=SIMMinimaImage(mse_image,&minima,offset,exception);
|
||||
if (status == MagickFalse)
|
||||
ThrowMSESimilarityException();
|
||||
status=NegateImage(mse_image,MagickFalse,exception);
|
||||
if (status == MagickFalse)
|
||||
ThrowMSESimilarityException();
|
||||
*similarity_metric=QuantumScale*minima;
|
||||
@@ -3660,8 +3657,8 @@ static Image *PhaseSimilarityImage(const Image *image,const Image *reconstruct,
|
||||
Crop padding.
|
||||
*/
|
||||
SetGeometry(image,&geometry);
|
||||
geometry.width=image->columns-reconstruct->columns;
|
||||
geometry.height=image->rows-reconstruct->rows;
|
||||
geometry.width=image->columns;
|
||||
geometry.height=image->rows;
|
||||
ResetImagePage(gamma_image,"0x0+0+0");
|
||||
phase_image=CropImage(gamma_image,&geometry,exception);
|
||||
gamma_image=DestroyImage(gamma_image);
|
||||
|
||||
Reference in New Issue
Block a user