#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
#include "MagickCore/string-private.h"
Go to the source code of this file.
◆ CompareEpsilon
#define CompareEpsilon (1.0e-06) |
◆ DefaultDissimilarityThreshold
#define DefaultDissimilarityThreshold 0.31830988618379067154 |
◆ DefaultSimilarityThreshold
#define DefaultSimilarityThreshold (-1.0) |
◆ DestroyCompare
#define DestroyCompare |
( |
| ) |
|
Value:{ \
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); \
}
◆ ThrowCompareException
#define ThrowCompareException |
( |
|
asperity, |
|
|
|
tag, |
|
|
|
option |
|
) |
| |
Value:{ \
if (exception->severity < (asperity)) \
(void) ThrowMagickException(exception,GetMagickModule(),asperity,tag, \
"`%s'",option); \
DestroyCompare(); \
return(MagickFalse); \
}
◆ ThrowCompareInvalidArgumentException
#define ThrowCompareInvalidArgumentException |
( |
|
option, |
|
|
|
argument |
|
) |
| |
Value:{ \
(void) ThrowMagickException(exception,GetMagickModule(),OptionError, \
"InvalidArgument","'%s': %s",option,argument); \
DestroyCompare(); \
return(MagickFalse); \
}
◆ CompareImagesCommand()
WandExport MagickBooleanType CompareImagesCommand |
( |
ImageInfo * |
image_info, |
|
|
int |
argc, |
|
|
char ** |
argv, |
|
|
char ** |
metadata, |
|
|
ExceptionInfo * |
exception |
|
) |
| |
Definition at line 199 of file compare.c.
References AppendImageStack, CompareEpsilon, CompareUsage(), DefaultDissimilarityThreshold, DefaultSimilarityThreshold, DestroyCompare, FinalizeImageSettings, FireImageStack, MagickPathExtent, MaxImageStackDepth, MogrifyImageInfo(), NewImageStack, PopImageStack, PushImageStack, ReadCommandlLine, ThrowCompareException, and ThrowCompareInvalidArgumentException.
◆ CompareUsage()
static MagickBooleanType CompareUsage |
( |
void |
| ) |
|
|
static |