18#ifndef MAGICKCORE_COMPARE_H
19#define MAGICKCORE_COMPARE_H
21#include "magick/image.h"
23#if defined(__cplusplus) || defined(c_plusplus)
31 MeanAbsoluteErrorMetric,
32 MeanErrorPerPixelMetric,
33 MeanSquaredErrorMetric,
34 PeakAbsoluteErrorMetric,
35 PeakSignalToNoiseRatioMetric,
36 RootMeanSquaredErrorMetric,
37 NormalizedCrossCorrelationErrorMetric,
39 UndefinedErrorMetric = 0,
40 PerceptualHashErrorMetric = 0xff
43extern MagickExport
double
44 *GetImageChannelDistortions(Image *,
const Image *,
const MetricType,
47extern MagickExport Image
48 *CompareImageChannels(Image *,
const Image *,
const ChannelType,
49 const MetricType,
double *,ExceptionInfo *),
50 *CompareImages(Image *,
const Image *,
const MetricType,
double *,
52 *SimilarityImage(Image *,
const Image *,RectangleInfo *,
double *,
54 *SimilarityMetricImage(Image *,
const Image *,
const MetricType,
55 RectangleInfo *,
double *,ExceptionInfo *);
57extern MagickExport MagickBooleanType
58 GetImageChannelDistortion(Image *,
const Image *,
const ChannelType,
59 const MetricType,
double *,ExceptionInfo *),
60 GetImageDistortion(Image *,
const Image *,
const MetricType,
double *,
62 IsImagesEqual(Image *,
const Image *);
64#if defined(__cplusplus) || defined(c_plusplus)