Hello People,

As part of our testing, we compare images using the 'compare' command of 
'ImageMagick' like the following:

compare input.png output.png comp_result.png

The 'output' of this 'compare' command is another image ('comp_result.png' in 
the above example).  Now, in order to find out if the comparison was successful 
or not, someone has to manually open the result file named 'comp_result.png' 
and have a look at it.  

Instead of this arrangment (someone manually opening the output file and 
deciding 'Pass/Fail'), can 'ImageMagick' itself compare two images and give a 
'0/1 result' based on which we can mark the 'comparsion' as 'Pass/Fail'?  

The color code, '(216,  0, 27)', seems to be always present in the image drawn 
in case of a 'Failed Comparison'.  Can that error code be used to find out the 
result (presence of (216,  0, 27) indicates a 'mismatch' and its absence 
indicates a 'perfect match')?

Thanks for your time,
Vaidyalingam.


      
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to