| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #ifndef _MAGICKCORE_COMPARE_H |
|---|
| 19 | #define _MAGICKCORE_COMPARE_H |
|---|
| 20 | |
|---|
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
|---|
| 22 | extern "C" { |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | #include "magick/image.h" |
|---|
| 26 | |
|---|
| 27 | typedef enum |
|---|
| 28 | { |
|---|
| 29 | UndefinedMetric, |
|---|
| 30 | AbsoluteErrorMetric, |
|---|
| 31 | MeanAbsoluteErrorMetric, |
|---|
| 32 | MeanErrorPerPixelMetric, |
|---|
| 33 | MeanSquaredErrorMetric, |
|---|
| 34 | PeakAbsoluteErrorMetric, |
|---|
| 35 | PeakSignalToNoiseRatioMetric, |
|---|
| 36 | RootMeanSquaredErrorMetric |
|---|
| 37 | } MetricType; |
|---|
| 38 | |
|---|
| 39 | extern MagickExport double |
|---|
| 40 | *GetImageChannelDistortions(Image *,const Image *,const MetricType, |
|---|
| 41 | ExceptionInfo *); |
|---|
| 42 | |
|---|
| 43 | extern MagickExport Image |
|---|
| 44 | *CompareImageChannels(Image *,const Image *,const ChannelType, |
|---|
| 45 | const MetricType,double *,ExceptionInfo *), |
|---|
| 46 | *CompareImages(Image *,const Image *,const MetricType,double *, |
|---|
| 47 | ExceptionInfo *); |
|---|
| 48 | |
|---|
| 49 | extern MagickExport MagickBooleanType |
|---|
| 50 | GetImageChannelDistortion(Image *,const Image *,const ChannelType, |
|---|
| 51 | const MetricType,double *,ExceptionInfo *), |
|---|
| 52 | GetImageDistortion(Image *,const Image *,const MetricType,double *, |
|---|
| 53 | ExceptionInfo *), |
|---|
| 54 | IsImagesEqual(Image *,const Image *); |
|---|
| 55 | |
|---|
| 56 | #if defined(__cplusplus) || defined(c_plusplus) |
|---|
| 57 | } |
|---|
| 58 | #endif |
|---|
| 59 | |
|---|
| 60 | #endif |
|---|