def _roi_coordinates(roi):
    """Convert roi coordinates into start point, height and width.

    :param list roi: region of interest, i.e. ``[x0, y0, x1, y1]``
    """
    return roi[0], roi[1], roi[2] - roi[0], roi[3] - roi[1]
