Add doc string to helper function _smooth

This commit is contained in:
Johannes Schönberger
2012-09-09 19:44:13 +02:00
parent bab2f715dd
commit c9fd1f3dd0
+1 -1
View File
@@ -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