MagickCore  6.9.12-43
Convert, Edit, Or Compose Bitmap Images
compare.c File Reference
Include dependency graph for compare.c:

Macros

#define SimilarityImageTag   "Similarity/Image"
 
#define Log10Epsilon   (1.0e-11)
 
#define SimilarityImageTag   "Similarity/Image"
 

Functions

MagickExport ImageCompareImages (Image *image, const Image *reconstruct_image, const MetricType metric, double *distortion, ExceptionInfo *exception)
 
static size_t GetNumberChannels (const Image *image, const ChannelType channel)
 
static MagickBooleanType ValidateImageMorphology (const Image *magick_restrict image, const Image *magick_restrict reconstruct_image)
 
MagickExport ImageCompareImageChannels (Image *image, const Image *reconstruct_image, const ChannelType channel, const MetricType metric, double *distortion, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetImageDistortion (Image *image, const Image *reconstruct_image, const MetricType metric, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetAbsoluteDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetFuzzDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetMeanAbsoluteDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetMeanErrorPerPixel (Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetMeanSquaredDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetNormalizedCrossCorrelationDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetPeakAbsoluteDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static double MagickLog10 (const double x)
 
static MagickBooleanType GetPeakSignalToNoiseRatio (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetPerceptualHashDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
static MagickBooleanType GetRootMeanSquaredDistortion (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetImageChannelDistortion (Image *image, const Image *reconstruct_image, const ChannelType channel, const MetricType metric, double *distortion, ExceptionInfo *exception)
 
MagickExport double * GetImageChannelDistortions (Image *image, const Image *reconstruct_image, const MetricType metric, ExceptionInfo *exception)
 
MagickExport MagickBooleanType IsImagesEqual (Image *image, const Image *reconstruct_image)
 
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, RectangleInfo *offset, double *similarity_metric, ExceptionInfo *exception)
 
MagickExport ImageSimilarityMetricImage (Image *image, const Image *reference, const MetricType metric, RectangleInfo *offset, double *similarity_metric, ExceptionInfo *exception)
 

Macro Definition Documentation

#define Log10Epsilon   (1.0e-11)

Referenced by MagickLog10().

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

Function Documentation

MagickExport Image* CompareImages ( Image image,
const Image reconstruct_image,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetImageDistortion ( Image image,
const Image reconstruct_image,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)
static MagickBooleanType GetPeakSignalToNoiseRatio ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
)
static
static MagickBooleanType GetRootMeanSquaredDistortion ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
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 double MagickLog10 ( const double  x)
inlinestatic

References Log10Epsilon.

Referenced by GetPeakSignalToNoiseRatio().

MagickExport Image* SimilarityImage ( Image image,
const Image reference,
RectangleInfo offset,
double *  similarity_metric,
ExceptionInfo exception 
)