MagickCore 7.1.2-21
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
compare.h
1/*
2 Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License. You may
6 obtain a copy of the License at
7
8 https://imagemagick.org/license/
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 MagickCore image compare methods.
17*/
18#ifndef MAGICKCORE_COMPARE_H
19#define MAGICKCORE_COMPARE_H
20
21#include "MagickCore/image.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27typedef enum
28{
29 UndefinedErrorMetric,
30 AbsoluteErrorMetric,
31 FuzzErrorMetric,
32 MeanAbsoluteErrorMetric,
33 MeanErrorPerPixelErrorMetric,
34 MeanSquaredErrorMetric,
35 NormalizedCrossCorrelationErrorMetric,
36 PeakAbsoluteErrorMetric,
37 PeakSignalToNoiseRatioErrorMetric,
38 PerceptualHashErrorMetric,
39 RootMeanSquaredErrorMetric,
40 StructuralSimilarityErrorMetric,
41 StructuralDissimilarityErrorMetric,
42 PhaseCorrelationErrorMetric,
43 DotProductCorrelationErrorMetric,
44 PixelDifferenceCountErrorMetric
45} MetricType;
46
47extern MagickExport double
48 *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *);
49
50extern MagickExport Image
51 *CompareImages(Image *,const Image *,const MetricType,double *,
52 ExceptionInfo *),
53 *SimilarityImage(const Image *,const Image *,const MetricType,const double,
54 RectangleInfo *,double *,ExceptionInfo *);
55
56extern MagickExport MagickBooleanType
57 GetImageDistortion(Image *,const Image *,const MetricType,double *,
58 ExceptionInfo *),
59 IsImagesEqual(const Image *,const Image *,ExceptionInfo *),
60 SetImageColorMetric(Image *,const Image *,ExceptionInfo *);
61
62#if defined(__cplusplus) || defined(c_plusplus)
63}
64#endif
65
66#endif