@@ -1430,31 +1430,31 @@ static MagickBooleanType GetPeakSignalToNoiseRatio(const Image *image,
1430
1430
if ((channel & RedChannel ) != 0 )
1431
1431
{
1432
1432
if (fabs (distortion [RedChannel ]) >= MagickEpsilon )
1433
- distortion [RedChannel ]= (- 10.0* MagickLog10 (distortion [RedChannel ]))/
1433
+ distortion [RedChannel ]= (10.0 * MagickLog10 (distortion [RedChannel ]))/
1434
1434
48.1647 ;
1435
1435
}
1436
1436
if ((channel & GreenChannel ) != 0 )
1437
1437
{
1438
1438
if (fabs (distortion [GreenChannel ]) >= MagickEpsilon )
1439
- distortion [GreenChannel ]= (- 10.0* MagickLog10 (distortion [GreenChannel ]))/
1439
+ distortion [GreenChannel ]= (10.0 * MagickLog10 (distortion [GreenChannel ]))/
1440
1440
48.1647 ;
1441
1441
}
1442
1442
if ((channel & BlueChannel ) != 0 )
1443
1443
{
1444
1444
if (fabs (distortion [BlueChannel ]) >= MagickEpsilon )
1445
- distortion [BlueChannel ]= (- 10.0* MagickLog10 (distortion [BlueChannel ]))/
1445
+ distortion [BlueChannel ]= (10.0 * MagickLog10 (distortion [BlueChannel ]))/
1446
1446
48.1647 ;
1447
1447
}
1448
1448
if (((channel & OpacityChannel ) != 0 ) && (image -> matte != MagickFalse ))
1449
1449
{
1450
1450
if (fabs (distortion [OpacityChannel ]) >= MagickEpsilon )
1451
- distortion [OpacityChannel ]= (- 10.0*
1451
+ distortion [OpacityChannel ]= (10.0 *
1452
1452
MagickLog10 (distortion [OpacityChannel ]))/48.1647 ;
1453
1453
}
1454
1454
if (((channel & IndexChannel ) != 0 ) && (image -> colorspace == CMYKColorspace ))
1455
1455
{
1456
1456
if (fabs (distortion [BlackChannel ]) >= MagickEpsilon )
1457
- distortion [BlackChannel ]= (- 10.0* MagickLog10 (distortion [BlackChannel ]))/
1457
+ distortion [BlackChannel ]= (10.0 * MagickLog10 (distortion [BlackChannel ]))/
1458
1458
48.1647 ;
1459
1459
}
1460
1460
distortion [CompositeChannels ]= 0.0 ;
0 commit comments