#include "wand/studio.h"
#include "wand/MagickWand.h"
#include "wand/mogrify-private.h"
#include "magick/string-private.h"
Defines | |
#define | CompareEpsilon (1.0e-06) |
#define | DefaultDissimilarityThreshold 0.31830988618379067154 |
#define | DefaultSimilarityThreshold (-1.0) |
#define | DestroyCompare() |
#define | ThrowCompareException(asperity, tag, option) |
#define | ThrowCompareInvalidArgumentException(option, argument) |
Functions | |
static MagickBooleanType | CompareUsage (void) |
WandExport MagickBooleanType | CompareImageCommand (ImageInfo *image_info, int argc, char **argv, char **metadata, ExceptionInfo *exception) |
#define CompareEpsilon (1.0e-06) |
Referenced by CompareImageCommand().
#define DefaultDissimilarityThreshold 0.31830988618379067154 |
Referenced by CompareImageCommand().
#define DefaultSimilarityThreshold (-1.0) |
Referenced by CompareImageCommand().
#define DestroyCompare | ( | ) |
{ \ if (similarity_image != (Image *) NULL) \ similarity_image=DestroyImageList(similarity_image); \ if (difference_image != (Image *) NULL) \ difference_image=DestroyImageList(difference_image); \ DestroyImageStack(); \ for (i=0; i < (ssize_t) argc; i++) \ argv[i]=DestroyString(argv[i]); \ argv=(char **) RelinquishMagickMemory(argv); \ }
Referenced by CompareImageCommand().
#define ThrowCompareException | ( | asperity, | |||
tag, | |||||
option | ) |
{ \ if (exception->severity < (asperity)) \ (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag, \ "`%s'",option); \ DestroyCompare(); \ return(MagickFalse); \ }
Referenced by CompareImageCommand().
#define ThrowCompareInvalidArgumentException | ( | option, | |||
argument | ) |
{ \ (void) ThrowMagickException(exception,GetMagickModule(),OptionError, \ "InvalidArgument","`%s': %s",option,argument); \ DestroyCompare(); \ return(MagickFalse); \ }
Referenced by CompareImageCommand().
WandExport MagickBooleanType CompareImageCommand | ( | ImageInfo * | image_info, | |
int | argc, | |||
char ** | argv, | |||
char ** | metadata, | |||
ExceptionInfo * | exception | |||
) |
References AppendImageStack, CompareEpsilon, CompareUsage(), DefaultDissimilarityThreshold, DefaultSimilarityThreshold, DestroyCompare, FinalizeImageSettings, FireImageStack, MaxImageStackDepth, MaxTextExtent, MogrifyImageInfo(), NewImageStack, PopImageStack, PushImageStack, ReadCommandlLine, ThrowCompareException, and ThrowCompareInvalidArgumentException.
static MagickBooleanType CompareUsage | ( | void | ) | [static] |
Referenced by CompareImageCommand().