Skip to content

Commit

Permalink
Build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Sep 1, 2022
1 parent 8382a97 commit 5ef57c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions magick/compare.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,10 +2186,6 @@ MagickExport Image *SimilarityMetricImage(Image *image,const Image *reference,
if (metric == PeakSignalToNoiseRatioMetric)
similarity*=0.01;
if ((metric == NormalizedCrossCorrelationErrorMetric) ||
<<<<<<< HEAD
(metric == PeakSignalToNoiseRatioMetric) ||
=======
>>>>>>> 4fc9a66d7 (properly handle a PSNR of 0 (undefined))
(metric == UndefinedErrorMetric))
similarity=1.0-similarity;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
Expand Down
3 changes: 1 addition & 2 deletions wand/compare.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,13 +1245,12 @@ WandExport MagickBooleanType CompareImageCommand(ImageInfo *image_info,
QuantumRange*distortion,GetMagickPrecision(),distortion);
break;
}
case PeakSignalToNoiseRatioErrorMetric:
case PeakSignalToNoiseRatioMetric:
{
(void) FormatLocaleFile(stderr,"%.*g (%.*g)",GetMagickPrecision(),
distortion,GetMagickPrecision(),0.01*distortion);
break;
}
case PeakSignalToNoiseRatioErrorMetric:
case AbsoluteErrorMetric:
case NormalizedCrossCorrelationErrorMetric:
case PerceptualHashErrorMetric:
Expand Down

0 comments on commit 5ef57c3

Please sign in to comment.