As an example of a typical binary operation on images, the division of image1.dat by image2.dat will be used. (Exactly the same logic applies to other binary operation on images.)
The following steps can be used:
The result is left in the current data array, and the image2.dat data is left in the memory.
Note: The images can be input in the reverse order, but an additional EXCHANGE command will be necessary, so that the division is in the correct sense.
The same logic applies to the subtraction of two images. With the image addition and multiplication the order is not important.