MagickCore  6.7.5
compare.c File Reference
Include dependency graph for compare.c:

Go to the source code of this file.

Defines

#define SimilarityImageTag   "Similarity/Image"
#define SimilarityImageTag   "Similarity/Image"

Functions

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 size_t GetImageChannels (const Image *image)
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 MagickBooleanType GetPeakSignalToNoiseRatio (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)
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 (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 (Image *image, const Image *reference, const MetricType metric, RectangleInfo *offset, double *similarity_metric, ExceptionInfo *exception)

Define Documentation

#define SimilarityImageTag   "Similarity/Image"
#define SimilarityImageTag   "Similarity/Image"

Function Documentation

static MagickBooleanType GetPeakSignalToNoiseRatio ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]

Definition at line 1058 of file compare.c.

References GetMeanSquaredDistortion(), and MaxPixelChannels.

Referenced by GetImageDistortion(), and GetImageDistortions().

static MagickBooleanType GetRootMeanSquaredDistortion ( const Image image,
const Image reconstruct_image,
double *  distortion,
ExceptionInfo exception 
) [static]

Definition at line 1073 of file compare.c.

References GetMeanSquaredDistortion(), and MaxPixelChannels.

Referenced by GetImageDistortion(), and GetImageDistortions().

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]