def METHOD_NAME(size):
    """Creates a mask to filter the image of size size"""
    import numpy as np
    from scipy.ndimage.morphology import distance_transform_edt as distance
    ftmask = np.ones(size)
    # Set zeros on corners
    # ftmask[0, 0] = 0
    # ftmask[size[0] - 1, size[1] - 1] = 0
    # ftmask[0, size[1] - 1] = 0
    # ftmask[size[0] - 1, 0] = 0
    ftmask[size[0] // 2, size[1] // 2] = 0
    # Distance transform
    ftmask = distance(ftmask)
    ftmask /= ftmask.max()
    # Keep this just in case we want to switch to the opposite filter
    ftmask *= -1.0
    ftmask += 1.0
    ftmask[ftmask >= 0.4] = 1
    ftmask[ftmask < 1] = 0
    return ftmask