make_100gaussians_image

photutils.datasets.make_100gaussians_image(noise=True)[source]

Make an example image containing 100 2D Gaussians plus a constant background.

The background has a mean of 5.

If noise is True, then Gaussian noise with a mean of 0 and a standard deviation of 2 is added to the output image.

Parameters:
noisebool, optional

Whether to include noise in the output image (default is True).

Returns:
image2D ndarray

Image containing 100 2D Gaussian sources.

Examples

import matplotlib.pyplot as plt
from photutils.datasets import make_100gaussians_image

image = make_100gaussians_image()
plt.imshow(image, origin='lower', interpolation='nearest')

(Source code, png, hires.png, pdf, svg)

../_images/photutils-datasets-make_100gaussians_image-1.png