blob: e7486dc357e6fd44bf74bc58ff8445f2efd644f7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy16af1cb2009-12-11 21:38:29 +00002 Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 http://www.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#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25#include "magick/image.h"
26
27typedef enum
28{
29 UndefinedMetric,
30 AbsoluteErrorMetric,
31 MeanAbsoluteErrorMetric,
32 MeanErrorPerPixelMetric,
33 MeanSquaredErrorMetric,
34 PeakAbsoluteErrorMetric,
35 PeakSignalToNoiseRatioMetric,
36 RootMeanSquaredErrorMetric
37} MetricType;
38
39extern MagickExport double
40 *GetImageChannelDistortions(Image *,const Image *,const MetricType,
41 ExceptionInfo *);
42
43extern 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 *SimilarityImage(Image *,const Image *,RectangleInfo *,double *,
49 ExceptionInfo *);
50
51extern MagickExport MagickBooleanType
52 GetImageChannelDistortion(Image *,const Image *,const ChannelType,
53 const MetricType,double *,ExceptionInfo *),
54 GetImageDistortion(Image *,const Image *,const MetricType,double *,
55 ExceptionInfo *),
56 IsImagesEqual(Image *,const Image *);
57
58#if defined(__cplusplus) || defined(c_plusplus)
59}
60#endif
61
62#endif