:param data:
    :param slice_number:
    :param axis:
    :param flipV: vertical flip
    :param flipH: horizontal flip
    :return:

def __get_slice(data, slice_number, axis=0, flipH=False, flipV=False):
    """

    :param data:
    :param slice_number:
    :param axis:
    :param flipV: vertical flip
    :param flipH: horizontal flip
    :return:
    """
    if axis == 0:
        data2d =  data[slice_number, :, :]
    elif axis == 1:
        data2d = data[:, slice_number, :]
    elif axis == 2:
        data2d = data[:, :, slice_number]
    else:
        logger.error("axis number error")
        print("axis number error")
        return None

    if flipV:
        if data2d is not None:
            data2d = data2d[-1:0:-1,:]
    if flipH:
        if data2d is not None:
            data2d = data2d[:, -1:0:-1]
    return data2d