I've certain data set of images which has annotations for objects in that image. Annotations as in [xmin, xmax, ymin, ymax] for the object in the image. How do I transform these coordinates to their new values when I resize the image while maintaining the aspect ratio ?