/usr/include/GraphicsMagick/magick/compare.h is in libgraphicsmagick1-dev 1.3.20-3+deb8u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | /*
Copyright (C) 2008 GraphicsMagick Group
This program is covered by multiple licenses, which are described in
Copyright.txt. You should have received a copy of Copyright.txt with this
package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
GraphicsMagick Image Comparison Methods.
*/
#ifndef _MAGICK_COMPARE_H
#define _MAGICK_COMPARE_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif /* defined(__cplusplus) || defined(c_plusplus) */
/*
Pixel differencing algorithms.
*/
typedef enum
{
UndefinedHighlightStyle,
AssignHighlightStyle,
ThresholdHighlightStyle,
TintHighlightStyle,
XorHighlightStyle
} HighlightStyle;
typedef struct _DifferenceImageOptions
{
ChannelType channel; /* Channel(s) to difference */
HighlightStyle highlight_style; /* Pixel annotation style */
PixelPacket highlight_color; /* Changed pixel highlight color */
} DifferenceImageOptions;
extern MagickExport void
InitializeDifferenceImageOptions(DifferenceImageOptions *options,
ExceptionInfo *exception);
extern MagickExport Image
*DifferenceImage(const Image *reference_image,const Image *compare_image,
const DifferenceImageOptions *difference_options,
ExceptionInfo *exception);
/*
Pixel error metrics.
*/
typedef enum
{
UndefinedMetric,
MeanAbsoluteErrorMetric,
MeanSquaredErrorMetric,
PeakAbsoluteErrorMetric,
PeakSignalToNoiseRatioMetric,
RootMeanSquaredErrorMetric
} MetricType;
/*
Pixel difference statistics.
*/
typedef struct _DifferenceStatistics
{
double
red,
green,
blue,
opacity,
combined;
} DifferenceStatistics;
extern MagickExport void
InitializeDifferenceStatistics(DifferenceStatistics *difference_statistics,
ExceptionInfo *exception);
extern MagickExport MagickPassFail
GetImageChannelDifference(const Image *reference_image,
const Image *compare_image,
const MetricType metric,
DifferenceStatistics *statistics,
ExceptionInfo *exception),
GetImageChannelDistortion(const Image *reference_image,
const Image *compare_image,
const ChannelType channel,
const MetricType metric,
double *distortion,
ExceptionInfo *exception),
GetImageDistortion(const Image *reference_image,
const Image *compare_image,
const MetricType metric,
double *distortion,
ExceptionInfo *exception);
extern MagickExport MagickBool
IsImagesEqual(Image *,const Image *);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif /* defined(__cplusplus) || defined(c_plusplus) */
#endif /* _MAGICK_COMPARE_H */
/*
* Local Variables:
* mode: c
* c-basic-offset: 2
* fill-column: 78
* End:
*/
|