def nLevelPyr(im,n,pyrFunct,border):
    """ Shows a pyramid of the same levels as one wants
    
    Parameters
    ----------
    im : matrix_like
        An image in OpenCV format

    n : int
        Number of levels for the pyramid

    pyrFunct : function_like
        A function that given an image returns the next image in
    the piramid.

    border : flag
        OpenCV flag for setting the border

    """
    vim = [im]
    newim = im
    for i in range(n):
        newim = pyrFunct(newim,borderType=border)
        vim.append(newim)
    return vim