Python, Machine Learning, Artificial Intelligence, Data Science, Data Analytics.
points=l*np.random.random((2,n**2)) >>> im[(points[0]).astype(np.int),(points[1]).astype(np.int)]=1 >>> im=ndimage.gaussian_filter(im,sigma=l/(4.*n)) >>> >>> mask=(im>im.mean()).astype(np.float) >>> mask+=0.1*im >>> img=mask+0.2*np.random.randn(*mask.shape) >>> >>>