00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MAGICKCORE_COMPARE_H
00019 #define MAGICKCORE_COMPARE_H
00020
00021 #include "MagickCore/image.h"
00022
00023 #if defined(__cplusplus) || defined(c_plusplus)
00024 extern "C" {
00025 #endif
00026
00027 typedef enum
00028 {
00029 UndefinedErrorMetric,
00030 AbsoluteErrorMetric,
00031 FuzzErrorMetric,
00032 MeanAbsoluteErrorMetric,
00033 MeanErrorPerPixelErrorMetric,
00034 MeanSquaredErrorMetric,
00035 NormalizedCrossCorrelationErrorMetric,
00036 PeakAbsoluteErrorMetric,
00037 PeakSignalToNoiseRatioErrorMetric,
00038 PerceptualHashErrorMetric,
00039 RootMeanSquaredErrorMetric,
00040 StructuralSimilarityErrorMetric,
00041 StructuralDissimilarityErrorMetric
00042 } MetricType;
00043
00044 extern MagickExport double
00045 *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *);
00046
00047 extern MagickExport Image
00048 *CompareImages(Image *,const Image *,const MetricType,double *,
00049 ExceptionInfo *),
00050 *SimilarityImage(const Image *,const Image *,const MetricType,const double,
00051 RectangleInfo *,double *,ExceptionInfo *);
00052
00053 extern MagickExport MagickBooleanType
00054 GetImageDistortion(Image *,const Image *,const MetricType,double *,
00055 ExceptionInfo *),
00056 IsImagesEqual(const Image *,const Image *,ExceptionInfo *),
00057 SetImageColorMetric(Image *,const Image *,ExceptionInfo *);
00058
00059 #if defined(__cplusplus) || defined(c_plusplus)
00060 }
00061 #endif
00062
00063 #endif