def shaveLF(inLF, border=(3, 3)):
    """
    Shave the input light field in terms of a given border.

    :param inLF:   input light field of size: [H, W, S, T, C]
    :param border: border values

    :return:       shaved light field
    """
    h_border, w_border = border
    if (h_border != 0) and (w_border != 0):
        shavedLF = inLF[h_border:-h_border, w_border:-w_border, ...]
    elif (h_border != 0) and (w_border == 0):
        shavedLF = inLF[h_border:-h_border, :, ...]
    elif (h_border == 0) and (w_border != 0):
        shavedLF = inLF[:, w_border:-w_border, ...]
    else:
        shavedLF = inLF
    return shavedLF