I used 'compare' in ImageMagick to produce diff image with metric.
$ compare -verbose -metric mae rose.jpg reconstruct.jpg difference.png
Channel distortion: MAE
red: 2282.91 (0.034835)
green: 1853.99 (0.0282901)
blue: 2008.67 (0.0306503)
all: 1536.39 (0.0234439)
I am not able to do this using Jmagick.
Can anybody help me get a diff image with similar metric using Jmagick.
Thanks in advance.