extern "C" {
#endif
-static inline double GetMaxImageFuzz(const Image *a,const Image *b)
-{
- double
- fuzz;
-
- fuzz=(double) MagickMax(MagickMax(a->fuzz,b->fuzz),(MagickRealType)
- MagickSQ1_2);
- return(fuzz*fuzz);
-}
-
extern MagickPrivate MagickBooleanType
ColorComponentGenesis(void),
IsEquivalentAlpha(const Image *,const PixelInfo *,const PixelInfo *),
extern MagickPrivate void
ColorComponentTerminus(void);
+static inline double GetFuzzyColorDistance(const Image *p,const Image *q)
+{
+ double
+ fuzz;
+
+ fuzz=(double) MagickMax(MagickMax(p->fuzz,q->fuzz),(MagickRealType)
+ MagickSQ1_2);
+ return(fuzz*fuzz);
+}
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
Generate difference image.
*/
status=MagickTrue;
- fuzz=GetMaxImageFuzz(image,reconstruct_image);
+ fuzz=GetFuzzyColorDistance(image,reconstruct_image);
image_view=AcquireVirtualCacheView(image,exception);
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
highlight_view=AcquireAuthenticCacheView(highlight_image,exception);
Compute the absolute difference in pixels between two images.
*/
status=MagickTrue;
- fuzz=GetMaxImageFuzz(image,reconstruct_image);
+ fuzz=GetFuzzyColorDistance(image,reconstruct_image);
image_view=AcquireVirtualCacheView(image,exception);
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
distance,
scale;
- fuzz=GetMaxImageFuzz(source,destination);
+ fuzz=GetFuzzyColorDistance(source,destination);
scale=1.0;
distance=0.0;
if (source->alpha_trait != UndefinedPixelTrait)