MagickCore  6.9.11-60
Convert, Edit, Or Compose Bitmap Images
compare.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 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/script/license.php
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 "magick/image.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef enum
28 {
42 
43 extern MagickExport double
45  ExceptionInfo *);
46 
47 extern MagickExport Image
49  const MetricType,double *,ExceptionInfo *),
50  *CompareImages(Image *,const Image *,const MetricType,double *,
51  ExceptionInfo *),
52  *SimilarityImage(Image *,const Image *,RectangleInfo *,double *,
53  ExceptionInfo *),
55  RectangleInfo *,double *,ExceptionInfo *);
56 
59  const MetricType,double *,ExceptionInfo *),
60  GetImageDistortion(Image *,const Image *,const MetricType,double *,
61  ExceptionInfo *),
62  IsImagesEqual(Image *,const Image *);
63 
64 #if defined(__cplusplus) || defined(c_plusplus)
65 }
66 #endif
67 
68 #endif
MagickExport MagickBooleanType IsImagesEqual(Image *, const Image *)
Definition: compare.c:1903
MagickExport MagickBooleanType GetImageDistortion(Image *, const Image *, const MetricType, double *, ExceptionInfo *)
MagickExport double * GetImageChannelDistortions(Image *, const Image *, const MetricType, ExceptionInfo *)
Definition: compare.c:1745
MetricType
Definition: compare.h:28
@ MeanAbsoluteErrorMetric
Definition: compare.h:31
@ MeanErrorPerPixelMetric
Definition: compare.h:32
@ MeanSquaredErrorMetric
Definition: compare.h:33
@ PerceptualHashErrorMetric
Definition: compare.h:40
@ RootMeanSquaredErrorMetric
Definition: compare.h:36
@ NormalizedCrossCorrelationErrorMetric
Definition: compare.h:37
@ UndefinedErrorMetric
Definition: compare.h:39
@ UndefinedMetric
Definition: compare.h:29
@ AbsoluteErrorMetric
Definition: compare.h:30
@ FuzzErrorMetric
Definition: compare.h:38
@ PeakAbsoluteErrorMetric
Definition: compare.h:34
@ PeakSignalToNoiseRatioMetric
Definition: compare.h:35
MagickExport Image * SimilarityMetricImage(Image *, const Image *, const MetricType, RectangleInfo *, double *, ExceptionInfo *)
Definition: compare.c:2098
MagickExport MagickBooleanType GetImageChannelDistortion(Image *, const Image *, const ChannelType, const MetricType, double *, ExceptionInfo *)
MagickExport Image * CompareImages(Image *, const Image *, const MetricType, double *, ExceptionInfo *)
MagickExport Image * CompareImageChannels(Image *, const Image *, const ChannelType, const MetricType, double *, ExceptionInfo *)
MagickExport Image * SimilarityImage(Image *, const Image *, RectangleInfo *, double *, ExceptionInfo *)
ChannelType
Definition: magick-type.h:169
MagickBooleanType
Definition: magick-type.h:203
#define MagickExport
Definition: method-attribute.h:80
Definition: exception.h:103
Definition: image.h:153
Definition: geometry.h:124