%pylab inline
from skimage import (
io as dataio,
feature,
filters,
measure,
morphology,
)
image = dataio.imread('https://imagej.nih.gov/ij/images/blobs.gif')
imshow(image, cmap='gray')
for sigma in [2, 5, 10, 15, 20]:
blurred = filters.gaussian(image, sigma=sigma)
maxima = feature.peak_local_max(-blurred, min_distance=3)
figure()
imshow(blurred, cmap='gray')
plot(maxima[:, 1], maxima[:, 0], 'y+')