First time here? Check out the FAQ!
Just a bit extension of answer of @LBerger for case with changed aspect ratio. Let's say you have resized image (cv2.re