compare.c File Reference

#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
#include "MagickCore/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 CompareImagesCommand (ImageInfo *image_info, int argc, char **argv, char **metadata, ExceptionInfo *exception)

Define Documentation

#define CompareEpsilon   (1.0e-06)

Referenced by CompareImagesCommand().

#define DefaultDissimilarityThreshold   0.31830988618379067154

Referenced by CompareImagesCommand().

#define DefaultSimilarityThreshold   (-1.0)

Referenced by CompareImagesCommand().

 
#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); \
}

Referenced by CompareImagesCommand().

#define ThrowCompareException ( asperity,
tag,
option   ) 
Value:
{ \
  if (exception->severity < (asperity)) \
    (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag, \
      "`%s'",option); \
  DestroyCompare(); \
  return(MagickFalse); \
}

Referenced by CompareImagesCommand().

#define ThrowCompareInvalidArgumentException ( option,
argument   ) 
Value:
{ \
  (void) ThrowMagickException(exception,GetMagickModule(),OptionError, \
    "InvalidArgument","'%s': %s",option,argument); \
  DestroyCompare(); \
  return(MagickFalse); \
}

Referenced by CompareImagesCommand().


Function Documentation

WandExport MagickBooleanType CompareImagesCommand ( ImageInfo *  image_info,
int  argc,
char **  argv,
char **  metadata,
ExceptionInfo *  exception 
)
static MagickBooleanType CompareUsage ( void   )  [static]

Referenced by CompareImagesCommand().


Generated on 26 Oct 2019 for MagickWand by  doxygen 1.6.1