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

Go to the source code of this file.

Macros

#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 double MagickMax (const double x, const double y)
 
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, const double similarity_threshold, RectangleInfo *offset, double *similarity_metric, ExceptionInfo *exception)
 

Macro Definition 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 1077 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 1092 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
static double MagickMax ( const double  x,
const double  y 
)
inlinestatic

Definition at line 310 of file compare.c.

Referenced by GetAbsoluteDistortion().