A model of threshold vision incorporating inhomogeneity of the visual field