Go to the source code of this file.
|
enum | MetricType {
UndefinedErrorMetric,
AbsoluteErrorMetric,
FuzzErrorMetric,
MeanAbsoluteErrorMetric,
MeanErrorPerPixelErrorMetric,
MeanSquaredErrorMetric,
NormalizedCrossCorrelationErrorMetric,
PeakAbsoluteErrorMetric,
PeakSignalToNoiseRatioErrorMetric,
PerceptualHashErrorMetric,
RootMeanSquaredErrorMetric,
StructuralSimilarityErrorMetric,
StructuralDissimilarityErrorMetric
} |
|
|
MagickExport double * | GetImageDistortions (Image *, const Image *, const MetricType, ExceptionInfo *) |
|
MagickExport Image * | CompareImages (Image *, const Image *, const MetricType, double *, ExceptionInfo *) |
|
MagickExport Image * | SimilarityImage (const Image *, const Image *, const MetricType, const double, RectangleInfo *, double *, ExceptionInfo *) |
|
MagickExport MagickBooleanType | GetImageDistortion (Image *, const Image *, const MetricType, double *, ExceptionInfo *) |
|
MagickExport MagickBooleanType | IsImagesEqual (const Image *, const Image *, ExceptionInfo *) |
|
MagickExport MagickBooleanType | SetImageColorMetric (Image *, const Image *, ExceptionInfo *) |
|
◆ MetricType
Enumerator |
---|
UndefinedErrorMetric | |
AbsoluteErrorMetric | |
FuzzErrorMetric | |
MeanAbsoluteErrorMetric | |
MeanErrorPerPixelErrorMetric | |
MeanSquaredErrorMetric | |
NormalizedCrossCorrelationErrorMetric | |
PeakAbsoluteErrorMetric | |
PeakSignalToNoiseRatioErrorMetric | |
PerceptualHashErrorMetric | |
RootMeanSquaredErrorMetric | |
StructuralSimilarityErrorMetric | |
StructuralDissimilarityErrorMetric | |
Definition at line 27 of file compare.h.
◆ CompareImages()
◆ GetImageDistortion()
◆ GetImageDistortions()
Definition at line 1739 of file compare.c.
References AbsoluteErrorMetric, AcquireQuantumMemory(), _Image::debug, _Image::filename, FuzzErrorMetric, GetAbsoluteDistortion(), GetFuzzDistortion(), GetMagickModule, GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GetPeakSignalToNoiseRatio(), GetRootMeanSquaredDistortion(), GetStructuralDisimilarityDistortion(), GetStructuralSimilarityDistortion(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, MaxPixelChannels, MeanAbsoluteErrorMetric, MeanErrorPerPixelErrorMetric, MeanSquaredErrorMetric, NormalizedCrossCorrelationErrorMetric, PeakAbsoluteErrorMetric, PeakSignalToNoiseRatioErrorMetric, PerceptualHashErrorMetric, RelinquishMagickMemory(), ResourceLimitFatalError, RootMeanSquaredErrorMetric, _Image::signature, StructuralDissimilarityErrorMetric, StructuralSimilarityErrorMetric, ThrowFatalException, and TraceEvent.
◆ IsImagesEqual()
◆ SetImageColorMetric()
Definition at line 2003 of file compare.c.
References AcquireVirtualCacheView(), _Image::columns, DestroyCacheView(), _Image::error, GetCacheViewVirtualPixels(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickMax, MagickTrue, _ErrorInfo::mean_error_per_pixel, _ErrorInfo::normalized_maximum_error, _ErrorInfo::normalized_mean_error, QuantumScale, _Image::rows, _Image::signature, UndefinedPixelTrait, and UpdatePixelTrait.
◆ SimilarityImage()
Definition at line 2165 of file compare.c.
References AcquireAuthenticCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, DeactivateAlphaChannel, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetSimilarityMetric(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMaximumValue, MagickMin, MagickTrue, NormalizedCrossCorrelationErrorMetric, PerceptualHashErrorMetric, _Image::progress_monitor, QuantumRange, _Image::rows, SetGeometry(), SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SimilarityImageTag, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedErrorMetric, UndefinedPixelTrait, UpdatePixelTrait, _RectangleInfo::x, and _RectangleInfo::y.