www/api/compare.html
Select API Method
CompareImagesCommand() compares two images and returns the difference between them as a distortion metric and as a new image visually annotating their differences.
The format of the CompareImagesCommand method is:
MagickBooleanType CompareImagesCommand(ImageInfo \*image\_info,int argc, char \*\*argv,char \*\*metadata,ExceptionInfo \*exception)
A description of each parameter follows:
image_infothe image info. argcthe number of elements in the argument vector. argvA text array containing the command line arguments. metadataany metadata is returned here. exceptionreturn any errors or warnings in this structure.