Defines | Functions

compare.c File Reference

#include "magick/studio.h"
#include "magick/artifact.h"
#include "magick/cache-view.h"
#include "magick/client.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colorspace.h"
#include "magick/colorspace-private.h"
#include "magick/compare.h"
#include "magick/composite-private.h"
#include "magick/constitute.h"
#include "magick/exception-private.h"
#include "magick/geometry.h"
#include "magick/image-private.h"
#include "magick/list.h"
#include "magick/log.h"
#include "magick/memory_.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/pixel-private.h"
#include "magick/resource_.h"
#include "magick/string_.h"
#include "magick/utility.h"
#include "magick/version.h"
Include dependency graph for compare.c:

Go to the source code of this file.

Defines

#define SimilarityImageTag   "Similarity/Image"

Functions

MagickExport ImageCompareImages (Image *image, const Image *reconstruct_image, const MetricType metric, double *distortion, ExceptionInfo *exception)
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 GetAbsoluteError (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
static size_t GetNumberChannels (const Image *image, const ChannelType channel)
static MagickBooleanType GetMeanAbsoluteError (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 GetMeanSquaredError (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetPeakAbsoluteError (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetPeakSignalToNoiseRatio (const Image *image, const Image *reconstruct_image, const ChannelType channel, double *distortion, ExceptionInfo *exception)
static MagickBooleanType GetRootMeanSquaredError (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 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)

Define Documentation

#define SimilarityImageTag   "Similarity/Image"

Referenced by SimilarityImage().


Function Documentation

MagickExport Image* CompareImageChannels ( Image image,
const Image reconstruct_image,
const ChannelType  channel,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)
MagickExport Image* CompareImages ( Image image,
const Image reconstruct_image,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)

Definition at line 105 of file compare.c.

References AllChannels, and CompareImageChannels().

static MagickBooleanType GetAbsoluteError ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
) [static]
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 GetImageDistortion ( Image image,
const Image reconstruct_image,
const MetricType  metric,
double *  distortion,
ExceptionInfo exception 
)

Definition at line 336 of file compare.c.

References AllChannels, and GetImageChannelDistortion().

static MagickBooleanType GetMeanAbsoluteError ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetMeanErrorPerPixel ( Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetMeanSquaredError ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
) [static]
static size_t GetNumberChannels ( const Image image,
const ChannelType  channel 
) [static]
static MagickBooleanType GetPeakAbsoluteError ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetPeakSignalToNoiseRatio ( const Image image,
const Image reconstruct_image,
const ChannelType  channel,
double *  distortion,
ExceptionInfo exception 
) [static]
static MagickBooleanType GetRootMeanSquaredError ( 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 ssize_t  x_offset,
const ssize_t  y_offset,
ExceptionInfo exception 
) [static]
MagickExport MagickBooleanType IsImagesEqual ( Image image,
const Image reconstruct_image 
)
MagickExport Image* SimilarityImage ( Image image,
const Image reference,
RectangleInfo offset,
double *  similarity_metric,
ExceptionInfo exception 
)