diff --git a/skimage/transform/pyramids.py b/skimage/transform/pyramids.py index 7a8e8228..458b8c20 100644 --- a/skimage/transform/pyramids.py +++ b/skimage/transform/pyramids.py @@ -6,8 +6,8 @@ from skimage.util import img_as_float def _smooth(image, sigma, mode, cval): + """Return image with each channel smoothed by the gaussian filter.""" - # allocate output array smoothed = np.empty(image.shape, dtype=np.double) if image.ndim == 3: # apply gaussian filter to all dimensions independently