compare.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/client.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/compare.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/constitute.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/resource_.h"
#include "MagickCore/string_.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"
#include "MagickCore/version.h"

Defines

#define SimilarityImageTag   "Similarity/Image"
#define Log10Epsilon   (1.0e-11)
#define SSIMRadius   5.0
#define SSIMSigma   1.5
#define SSIMBlocksize   8
#define SSIMK1   0.01
#define SSIMK2   0.03
#define SSIML   1.0
#define SimilarityImageTag   "Similarity/Image"

Functions

static size_t GetImageChannels (const Image *image)
MagickExport ImageCompareImages (Image *image, const Image *reconstruct_image, const MetricType metric, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetAbsoluteDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetFuzzDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetMeanAbsoluteDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetMeanErrorPerPixel (Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetMeanSquaredDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetNormalizedCrossCorrelationDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetPeakAbsoluteDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static double MagickLog10 (const double x)
static MagickBooleanType GetPeakSignalToNoiseRatio (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetPerceptualHashDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetRootMeanSquaredDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetStructuralSimilarityDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetStructuralDisimilarityDistortion (const Image *image, const Image *reconstruct_image, double *distortion, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageDistortion (Image *image, const Image *reconstruct_image, const MetricType metric, double *distortion, ExceptionInfo *exception)
MagickExport double * GetImageDistortions (Image *image, const Image *reconstruct_image, const MetricType metric, ExceptionInfo *exception)
MagickExport MagickBooleanType IsImagesEqual (const Image *image, const Image *reconstruct_image, ExceptionInfo *exception)
MagickExport MagickBooleanType SetImageColorMetric (Image *image, const Image *reconstruct_image, ExceptionInfo *exception)
static double GetSimilarityMetric (const Image *image, const Image *reference, const MetricType metric, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception)
MagickExport ImageSimilarityImage (const Image *image, const Image *reference, const MetricType metric, const double similarity_threshold, RectangleInfo *offset, double *similarity_metric, ExceptionInfo *exception)

Define Documentation

#define Log10Epsilon   (1.0e-11)

Referenced by MagickLog10().

#define SimilarityImageTag   "Similarity/Image"
#define SimilarityImageTag   "Similarity/Image"
#define SSIMBlocksize   8
#define SSIMK1   0.01
#define SSIMK2   0.03
#define SSIML   1.0
#define SSIMRadius   5.0
#define SSIMSigma   1.5

Function Documentation

MagickExport Image* CompareImages ( Image image,
const Image reconstruct_image,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)
static MagickBooleanType GetAbsoluteDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetFuzzDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static size_t GetImageChannels ( const Image image  )  [static]
MagickExport MagickBooleanType GetImageDistortion ( Image image,
const Image reconstruct_image,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)
MagickExport double* GetImageDistortions ( Image image,
const Image reconstruct_image,
const MetricType  metric,
ExceptionInfo exception 
)
static MagickBooleanType GetMeanAbsoluteDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetMeanErrorPerPixel ( Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetMeanSquaredDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetNormalizedCrossCorrelationDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetPeakAbsoluteDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetPeakSignalToNoiseRatio ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetPerceptualHashDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetRootMeanSquaredDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static double GetSimilarityMetric ( const Image image,
const Image reference,
const MetricType  metric,
const ssize_t  x_offset,
const ssize_t  y_offset,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetStructuralDisimilarityDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetStructuralSimilarityDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]
MagickExport MagickBooleanType IsImagesEqual ( const Image image,
const Image reconstruct_image,
ExceptionInfo exception 
)
static double MagickLog10 ( const double  x  )  [inline, static]

References Log10Epsilon.

Referenced by GetPeakSignalToNoiseRatio().

MagickExport MagickBooleanType SetImageColorMetric ( Image image,
const Image reconstruct_image,
ExceptionInfo exception 
)
MagickExport Image* SimilarityImage ( const Image image,
const Image reference,
const MetricType  metric,
const double  similarity_threshold,
RectangleInfo offset,
double *  similarity_metric,
ExceptionInfo exception 
)

Generated on 22 Jul 2019 for MagickCore by  doxygen 1.6.1