The function calculates the minimum values of the two images Input1 and Input2 pixel by pixel.