compare.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore image compare methods.
00017 */
00018 #ifndef MAGICKCORE_COMPARE_H
00019 #define MAGICKCORE_COMPARE_H
00020 
00021 #include "MagickCore/image.h"
00022 
00023 #if defined(__cplusplus) || defined(c_plusplus)
00024 extern "C" {
00025 #endif
00026 
00027 typedef enum
00028 {
00029   UndefinedErrorMetric,
00030   AbsoluteErrorMetric,
00031   FuzzErrorMetric,
00032   MeanAbsoluteErrorMetric,
00033   MeanErrorPerPixelErrorMetric,
00034   MeanSquaredErrorMetric,
00035   NormalizedCrossCorrelationErrorMetric,
00036   PeakAbsoluteErrorMetric,
00037   PeakSignalToNoiseRatioErrorMetric,
00038   PerceptualHashErrorMetric,
00039   RootMeanSquaredErrorMetric,
00040   StructuralSimilarityErrorMetric,
00041   StructuralDissimilarityErrorMetric
00042 } MetricType;
00043 
00044 extern MagickExport double
00045   *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *);
00046 
00047 extern MagickExport Image
00048   *CompareImages(Image *,const Image *,const MetricType,double *,
00049     ExceptionInfo *),
00050   *SimilarityImage(const Image *,const Image *,const MetricType,const double,
00051     RectangleInfo *,double *,ExceptionInfo *);
00052 
00053 extern MagickExport MagickBooleanType
00054   GetImageDistortion(Image *,const Image *,const MetricType,double *,
00055     ExceptionInfo *),
00056   IsImagesEqual(const Image *,const Image *,ExceptionInfo *),
00057   SetImageColorMetric(Image *,const Image *,ExceptionInfo *);
00058 
00059 #if defined(__cplusplus) || defined(c_plusplus)
00060 }
00061 #endif
00062 
00063 #endif

Generated on 16 Nov 2019 for MagickCore by  doxygen 1.6.1