#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/option.h"#include "magick/pixel-private.h"#include "magick/resource_.h"#include "magick/string_.h"#include "magick/utility.h"#include "magick/version.h"

Go to the source code of this file.
Functions | |
| MagickExport Image * | CompareImages (Image *image, const Image *reconstruct_image, const MetricType metric, double *distortion, ExceptionInfo *exception) |
| MagickExport Image * | CompareImageChannels (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 unsigned long | 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) |
| MagickExport Image* CompareImageChannels | ( | Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| const MetricType | metric, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 114 of file compare.c.
References AcquireCacheViewThreadSet(), AllChannels, _PixelPacket::blue, BlueChannel, CloneImage(), CMYKColorspace, _Image::colorspace, _Image::columns, _Image::compose, CompositeImage(), ConvertRGBToCMYK(), _Image::debug, DestroyCacheViewThreadSet(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetCacheViewThreadId(), GetCacheViewVirtualPixels(), GetImageArtifact(), GetImageChannelDistortion(), GetMagickModule, GetMagickPixelPacket(), _PixelPacket::green, GreenChannel, ImageError, IndexChannel, InheritException(), IsMagickColorSimilar(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpacityChannel, OpaqueAlphaChannel, QueryMagickColor(), QueueCacheViewAuthenticPixels(), _PixelPacket::red, RedChannel, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), SetMagickPixelPacket(), SetPixelPacket(), _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, and TraceEvent.
Referenced by CompareImages().
| MagickExport Image* CompareImages | ( | 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] |
Definition at line 349 of file compare.c.
References AcquireCacheViewThreadSet(), AllChannels, BlackChannel, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheViewThreadSet(), GetCacheViewThreadId(), GetCacheViewVirtualPixels(), GetMagickPixelPacket(), GreenChannel, IndexChannel, IsMagickColorSimilar(), MagickFalse, MagickTrue, _Image::matte, OpacityChannel, RedChannel, ResetMagickMemory(), _Image::rows, and SetMagickPixelPacket().
Referenced by GetImageChannelDistortion(), and GetImageChannelDistortions().
| MagickExport MagickBooleanType GetImageChannelDistortion | ( | Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| const MetricType | metric, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 988 of file compare.c.
References AbsoluteErrorMetric, AcquireQuantumMemory(), AllChannels, _Image::columns, _Image::debug, _Image::filename, GetAbsoluteError(), GetMagickModule, GetMeanAbsoluteError(), GetMeanErrorPerPixel(), GetMeanSquaredError(), GetPeakAbsoluteError(), GetPeakSignalToNoiseRatio(), GetRootMeanSquaredError(), ImageError, LogMagickEvent(), MagickFalse, MagickSignature, MeanAbsoluteErrorMetric, MeanErrorPerPixelMetric, MeanSquaredErrorMetric, PeakAbsoluteErrorMetric, PeakSignalToNoiseRatioMetric, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitFatalError, RootMeanSquaredErrorMetric, _Image::rows, _Image::signature, ThrowBinaryException, ThrowFatalException, and TraceEvent.
Referenced by CompareImageChannels(), and GetImageDistortion().
| MagickExport double* GetImageChannelDistortions | ( | Image * | image, | |
| const Image * | reconstruct_image, | |||
| const MetricType | metric, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1107 of file compare.c.
References AbsoluteErrorMetric, AcquireQuantumMemory(), AllChannels, _Image::columns, _Image::debug, _Image::exception, _Image::filename, GetAbsoluteError(), GetMagickModule, GetMeanAbsoluteError(), GetMeanErrorPerPixel(), GetMeanSquaredError(), GetPeakAbsoluteError(), GetPeakSignalToNoiseRatio(), GetRootMeanSquaredError(), ImageError, LogMagickEvent(), MagickFalse, MagickSignature, MeanAbsoluteErrorMetric, MeanErrorPerPixelMetric, MeanSquaredErrorMetric, PeakAbsoluteErrorMetric, PeakSignalToNoiseRatioMetric, ResetMagickMemory(), ResourceLimitFatalError, RootMeanSquaredErrorMetric, _Image::rows, _Image::signature, ThrowFatalException, ThrowMagickException(), and TraceEvent.
| MagickExport MagickBooleanType GetImageDistortion | ( | Image * | image, | |
| const Image * | reconstruct_image, | |||
| const MetricType | metric, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) |
| static MagickBooleanType GetMeanAbsoluteError | ( | const Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 471 of file compare.c.
References AcquireCacheViewThreadSet(), AllChannels, BlackChannel, _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheViewThreadSet(), GetCacheViewThreadId(), GetCacheViewVirtualPixels(), GetNumberChannels(), _PixelPacket::green, GreenChannel, IndexChannel, MagickFalse, MagickTrue, _Image::matte, _PixelPacket::opacity, OpacityChannel, _PixelPacket::red, RedChannel, ResetMagickMemory(), and _Image::rows.
Referenced by GetImageChannelDistortion(), and GetImageChannelDistortions().
| static MagickBooleanType GetMeanErrorPerPixel | ( | Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 579 of file compare.c.
References AcquireCacheView(), AllChannels, BlackChannel, _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheView(), _Image::error, GetCacheViewVirtualPixels(), _PixelPacket::green, GreenChannel, IndexChannel, MagickFalse, MagickTrue, _Image::matte, _ErrorInfo::mean_error_per_pixel, _ErrorInfo::normalized_maximum_error, _ErrorInfo::normalized_mean_error, _PixelPacket::opacity, OpacityChannel, QuantumRange, QuantumScale, _PixelPacket::red, RedChannel, and _Image::rows.
Referenced by GetImageChannelDistortion(), and GetImageChannelDistortions().
| static MagickBooleanType GetMeanSquaredError | ( | const Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 708 of file compare.c.
References AcquireCacheViewThreadSet(), AllChannels, BlackChannel, _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheViewThreadSet(), GetCacheViewThreadId(), GetCacheViewVirtualPixels(), GetNumberChannels(), _PixelPacket::green, GreenChannel, IndexChannel, MagickFalse, MagickTrue, _Image::matte, _PixelPacket::opacity, OpacityChannel, QuantumScale, _PixelPacket::red, RedChannel, ResetMagickMemory(), and _Image::rows.
Referenced by GetImageChannelDistortion(), GetImageChannelDistortions(), GetPeakSignalToNoiseRatio(), and GetRootMeanSquaredError().
| static unsigned long GetNumberChannels | ( | const Image * | image, | |
| const ChannelType | channel | |||
| ) | [static] |
Definition at line 449 of file compare.c.
References BlueChannel, CMYKColorspace, _Image::colorspace, GreenChannel, IndexChannel, MagickFalse, _Image::matte, OpacityChannel, and RedChannel.
Referenced by GetMeanAbsoluteError(), and GetMeanSquaredError().
| static MagickBooleanType GetPeakAbsoluteError | ( | const Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 817 of file compare.c.
References AcquireCacheViewThreadSet(), AllChannels, BlackChannel, _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheViewThreadSet(), GetCacheViewThreadId(), GetCacheViewVirtualPixels(), _PixelPacket::green, GreenChannel, IndexChannel, MagickFalse, MagickTrue, _Image::matte, _PixelPacket::opacity, OpacityChannel, _PixelPacket::red, RedChannel, ResetMagickMemory(), and _Image::rows.
Referenced by GetImageChannelDistortion(), and GetImageChannelDistortions().
| static MagickBooleanType GetPeakSignalToNoiseRatio | ( | const Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 932 of file compare.c.
References AllChannels, BlackChannel, BlueChannel, CMYKColorspace, _Image::colorspace, GetMeanSquaredError(), GreenChannel, IndexChannel, MagickFalse, _Image::matte, OpacityChannel, QuantumScale, and RedChannel.
Referenced by GetImageChannelDistortion(), and GetImageChannelDistortions().
| static MagickBooleanType GetRootMeanSquaredError | ( | const Image * | image, | |
| const Image * | reconstruct_image, | |||
| const ChannelType | channel, | |||
| double * | distortion, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 963 of file compare.c.
References AllChannels, BlackChannel, BlueChannel, CMYKColorspace, _Image::colorspace, GetMeanSquaredError(), GreenChannel, IndexChannel, MagickFalse, _Image::matte, OpacityChannel, QuantumRange, and RedChannel.
Referenced by GetImageChannelDistortion(), and GetImageChannelDistortions().
| MagickExport MagickBooleanType IsImagesEqual | ( | Image * | image, | |
| const Image * | reconstruct_image | |||
| ) |
Definition at line 1241 of file compare.c.
References AcquireCacheView(), _PixelPacket::blue, CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheView(), _Image::error, _Image::exception, _Image::filename, GetCacheViewVirtualPixels(), _PixelPacket::green, ImageError, MagickFalse, MagickSignature, MagickTrue, _Image::matte, _ErrorInfo::mean_error_per_pixel, _ErrorInfo::normalized_maximum_error, _ErrorInfo::normalized_mean_error, _PixelPacket::opacity, QuantumScale, _PixelPacket::red, _Image::rows, _Image::signature, and ThrowBinaryException.
1.5.7.1