Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 09:14:24

0001 /*
0002   Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization
0003   dedicated to making software imaging solutions freely available.
0004   
0005   You may not use this file except in compliance with the License.  You may
0006   obtain a copy of the License at
0007   
0008     https://imagemagick.org/script/license.php
0009   
0010   Unless required by applicable law or agreed to in writing, software
0011   distributed under the License is distributed on an "AS IS" BASIS,
0012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013   See the License for the specific language governing permissions and
0014   limitations under the License.
0015 
0016   MagickCore image compare methods.
0017 */
0018 #ifndef MAGICKCORE_COMPARE_H
0019 #define MAGICKCORE_COMPARE_H
0020 
0021 #include "MagickCore/image.h"
0022 
0023 #if defined(__cplusplus) || defined(c_plusplus)
0024 extern "C" {
0025 #endif
0026 
0027 typedef enum
0028 {
0029   UndefinedErrorMetric,
0030   AbsoluteErrorMetric,
0031   FuzzErrorMetric,
0032   MeanAbsoluteErrorMetric,
0033   MeanErrorPerPixelErrorMetric,
0034   MeanSquaredErrorMetric,
0035   NormalizedCrossCorrelationErrorMetric,
0036   PeakAbsoluteErrorMetric,
0037   PeakSignalToNoiseRatioErrorMetric,
0038   PerceptualHashErrorMetric,
0039   RootMeanSquaredErrorMetric,
0040   StructuralSimilarityErrorMetric,
0041   StructuralDissimilarityErrorMetric
0042 } MetricType;
0043 
0044 extern MagickExport double
0045   *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *);
0046 
0047 extern MagickExport Image
0048   *CompareImages(Image *,const Image *,const MetricType,double *,
0049     ExceptionInfo *),
0050   *SimilarityImage(const Image *,const Image *,const MetricType,const double,
0051     RectangleInfo *,double *,ExceptionInfo *);
0052 
0053 extern MagickExport MagickBooleanType
0054   GetImageDistortion(Image *,const Image *,const MetricType,double *,
0055     ExceptionInfo *),
0056   IsImagesEqual(const Image *,const Image *,ExceptionInfo *),
0057   SetImageColorMetric(Image *,const Image *,ExceptionInfo *);
0058 
0059 #if defined(__cplusplus) || defined(c_plusplus)
0060 }
0061 #endif
0062 
0063 #endif