Nonparametric Maximum Likelihood Estimation of Spatial Patterns