Height of contour at different positions

Actually they are not ellipses! Contours found are similar but more like a rectangle with half circles left and right and the horizontal lines of rectangle aren’t 100 percent straight but can go up and down.