def getSegments(image,bounds):
    """
    Gets separated images acording to bounds provided

    Parameters
    ----------
    image(numpy.ndarray) : Image to obtain segmented image from
    bounds(list) : List of bounds for segment images as lists [top, down, left, right]

    Returns
    -------
    list : The list of segments of an image
    """
    segments = []
    for bound in bounds:
        segments += [image[(bound[0]):(bound[1]),(bound[2]):(bound[3]+1)]]
    return segments