2 Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
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.
16 MagickCore image compare methods.
18 #ifndef _MAGICKCORE_COMPARE_H
19 #define _MAGICKCORE_COMPARE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include "MagickCore/image.h"
31 MeanAbsoluteErrorMetric,
32 MeanErrorPerPixelMetric,
33 MeanSquaredErrorMetric,
34 PeakAbsoluteErrorMetric,
35 PeakSignalToNoiseRatioMetric,
36 RootMeanSquaredErrorMetric,
37 NormalizedCrossCorrelationErrorMetric,
41 extern MagickExport double
42 *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *);
44 extern MagickExport Image
45 *CompareImages(Image *,const Image *,const MetricType,double *,
47 *SimilarityImage(Image *,const Image *,RectangleInfo *,double *,
50 extern MagickExport MagickBooleanType
51 GetImageDistortion(Image *,const Image *,const MetricType,double *,
53 IsImagesEqual(Image *,const Image *,ExceptionInfo *);
55 #if defined(__cplusplus) || defined(c_plusplus)