mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-06-12 15:37:14 +02:00
initialize dissimilarity thresold to PI
This commit is contained in:
@@ -3674,10 +3674,6 @@ static Image *PhaseSimilarityImage(const Image *image,const Image *reconstruct,
|
||||
if (status == MagickFalse)
|
||||
ThrowPhaseSimilarityException();
|
||||
status=SIMMaximaImage(phase_image,&maxima,offset,exception);
|
||||
if (status == MagickFalse)
|
||||
ThrowPhaseSimilarityException();
|
||||
status=SIMMultiplyImage(phase_image,QuantumRange,
|
||||
(const ChannelStatistics *) NULL,exception);
|
||||
if (status == MagickFalse)
|
||||
ThrowPhaseSimilarityException();
|
||||
*similarity_metric=QuantumScale*maxima;
|
||||
|
||||
@@ -201,7 +201,7 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info,
|
||||
int argc,char **argv,char **metadata,ExceptionInfo *exception)
|
||||
{
|
||||
#define CompareEpsilon (1.0e-06)
|
||||
#define DefaultDissimilarityThreshold 0.31830988618379067154
|
||||
#define DefaultDissimilarityThreshold (1.0/MagickPI)
|
||||
#define DefaultSimilarityThreshold (-1.0)
|
||||
#define DestroyCompare() \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user