Skip to content

Commit 6d6e818

Browse files
author
Cristy
committed
correct PSNR metric
1 parent 958024c commit 6d6e818

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: magick/compare.c

-3
Original file line numberDiff line numberDiff line change
@@ -1465,9 +1465,6 @@ static MagickBooleanType GetPeakSignalToNoiseRatio(const Image *image,
14651465
distortion[BlackChannel]=fabs(-10.0*MagickLog10(PerceptibleReciprocal(
14661466
distortion[BlackChannel])))/48.1647;
14671467
}
1468-
if (fabs(distortion[CompositeChannels]) >= MagickEpsilon)
1469-
distortion[CompositeChannels]=fabs(-10.0*MagickLog10(PerceptibleReciprocal(
1470-
distortion[CompositeChannels])))/48.1647;
14711468
return(status);
14721469
}
14731470

0 commit comments

Comments
 (0)