Subtracting two images with component type double leads to flooring the double values in the image as the output image is of type short.
That's not the wanted behavior. Output image component type should depend on the input image component type.
Description
Description