def return_bounding_box_2d(x, y, xsize, ysize):
    """Return the bounding box

        :param x: x center
        :param y: y center
        :param xsize: x size
        :param ysize: y size
        :return: list(x1, y1, x2, y2) where (x1, y1) and (x2, y2) are the coordinates of the diagonal points of the
                bounding box depending on your coordinates frame
        """
    if xsize <= 0 or ysize <= 0:
        print("ERROR: can't compute bounding box, xsize or height has no positive value")
        return []
    return [x-xsize/2, y-ysize/2, x+xsize/2, y+ysize/2]