MagickCore
6.8.5
compare.h
Go to the documentation of this file.
1
/*
2
Copyright 1999-2013 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.
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)
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
NormalizedCrossCorrelationErrorMetric
,
38
FuzzErrorMetric
39
}
MetricType
;
40
41
extern
MagickExport
double
42
*
GetImageChannelDistortions
(
Image
*,
const
Image
*,
const
MetricType
,
43
ExceptionInfo
*);
44
45
extern
MagickExport
Image
46
*
CompareImageChannels
(
Image
*,
const
Image
*,
const
ChannelType
,
47
const
MetricType
,
double
*,
ExceptionInfo
*),
48
*
CompareImages
(
Image
*,
const
Image
*,
const
MetricType
,
double
*,
49
ExceptionInfo
*),
50
*
SimilarityImage
(
Image
*,
const
Image
*,
RectangleInfo
*,
double
*,
51
ExceptionInfo
*),
52
*
SimilarityMetricImage
(
Image
*,
const
Image
*,
const
MetricType
,
53
RectangleInfo
*,
double
*,
ExceptionInfo
*);
54
55
extern
MagickExport
MagickBooleanType
56
GetImageChannelDistortion
(
Image
*,
const
Image
*,
const
ChannelType
,
57
const
MetricType
,
double
*,
ExceptionInfo
*),
58
GetImageDistortion
(
Image
*,
const
Image
*,
const
MetricType
,
double
*,
59
ExceptionInfo
*),
60
IsImagesEqual
(
Image
*,
const
Image
*);
61
62
#if defined(__cplusplus) || defined(c_plusplus)
63
}
64
#endif
65
66
#endif
magick
compare.h
Generated by
1.8.1.2