@@ -175,7 +175,7 @@ MagickExport Image *CompareImageChannels(Image *image,
175
175
* highlight_image ;
176
176
177
177
MagickBooleanType
178
- status ;
178
+ status = MagickTrue ;
179
179
180
180
MagickPixelPacket
181
181
highlight ,
@@ -245,8 +245,7 @@ MagickExport Image *CompareImageChannels(Image *image,
245
245
/*
246
246
Generate difference image.
247
247
*/
248
- status = MagickTrue ;
249
- fuzz = GetFuzzyColorDistance (image ,reconstruct_image );
248
+ fuzz = image -> fuzz * reconstruct_image -> fuzz ;
250
249
GetMagickPixelPacket (image ,& zero );
251
250
image_view = AcquireVirtualCacheView (image ,exception );
252
251
reconstruct_view = AcquireVirtualCacheView (reconstruct_image ,exception );
@@ -460,7 +459,7 @@ static MagickBooleanType GetAESimilarity(const Image *image,
460
459
/*
461
460
Compute the absolute difference in pixels between two images.
462
461
*/
463
- fuzz = GetFuzzyColorDistance ( image , reconstruct_image ) ;
462
+ fuzz = image -> fuzz * reconstruct_image -> fuzz ;
464
463
SetImageCompareBounds (image ,reconstruct_image ,& columns ,& rows );
465
464
image_view = AcquireVirtualCacheView (image ,exception );
466
465
reconstruct_view = AcquireVirtualCacheView (reconstruct_image ,exception );
@@ -605,7 +604,7 @@ static MagickBooleanType GetFUZZSimilarity(const Image *image,
605
604
i ,
606
605
y ;
607
606
608
- fuzz = GetFuzzyColorDistance ( image , reconstruct_image ) ;
607
+ fuzz = image -> fuzz * reconstruct_image -> fuzz ;
609
608
SetImageCompareBounds (image ,reconstruct_image ,& columns ,& rows );
610
609
image_view = AcquireVirtualCacheView (image ,exception );
611
610
reconstruct_view = AcquireVirtualCacheView (reconstruct_image ,exception );
0 commit comments