File indexing completed on 2025-03-13 09:14:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef MAGICKCORE_COMPARE_H
0019 #define MAGICKCORE_COMPARE_H
0020
0021 #include "MagickCore/image.h"
0022
0023 #if defined(__cplusplus) || defined(c_plusplus)
0024 extern "C" {
0025 #endif
0026
0027 typedef enum
0028 {
0029 UndefinedErrorMetric,
0030 AbsoluteErrorMetric,
0031 FuzzErrorMetric,
0032 MeanAbsoluteErrorMetric,
0033 MeanErrorPerPixelErrorMetric,
0034 MeanSquaredErrorMetric,
0035 NormalizedCrossCorrelationErrorMetric,
0036 PeakAbsoluteErrorMetric,
0037 PeakSignalToNoiseRatioErrorMetric,
0038 PerceptualHashErrorMetric,
0039 RootMeanSquaredErrorMetric,
0040 StructuralSimilarityErrorMetric,
0041 StructuralDissimilarityErrorMetric
0042 } MetricType;
0043
0044 extern MagickExport double
0045 *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *);
0046
0047 extern MagickExport Image
0048 *CompareImages(Image *,const Image *,const MetricType,double *,
0049 ExceptionInfo *),
0050 *SimilarityImage(const Image *,const Image *,const MetricType,const double,
0051 RectangleInfo *,double *,ExceptionInfo *);
0052
0053 extern MagickExport MagickBooleanType
0054 GetImageDistortion(Image *,const Image *,const MetricType,double *,
0055 ExceptionInfo *),
0056 IsImagesEqual(const Image *,const Image *,ExceptionInfo *),
0057 SetImageColorMetric(Image *,const Image *,ExceptionInfo *);
0058
0059 #if defined(__cplusplus) || defined(c_plusplus)
0060 }
0061 #endif
0062
0063 #endif