Returns the final shape of data when image preprocessing is applied to the image with the given shape.
shape of the output image
shape of the input image