I have two images, I need to get the difference : How can I do that with Image Magik ?
I have tried this command line found on this topic : viewtopic.php?f=1&t=15584#p55309
Code: Select all
convert cyclops_question.png cyclops.png \
\( -clone 0 -clone 1 -compose difference -composite -threshold 0 \) \
-delete 1 -alpha off -compose copy_opacity -composite -trim \
cyclops_sep.png
I have found this code, too :
Code: Select all
img1.Compare(img2, new ErrorMetric(), imgDiff);
imgDiff.Write(monImageResult);
How can I do that ?
Thanks !!