ImageDifference¶
ImageDifference[a, b] gives the absolute difference of two images of the
same size, sample by sample.
The samples an image actually holds are what get differenced, so the answer
carries their Real32 precision rather than that of the literals written:
$ wo 'ImageData[ImageDifference[Image[{{0.1, 0.7}}], Image[{{0.3, 0.2}}]]]'
{{0.20000001788139343, 0.5}}
Images of different shapes are refused: