medpy.filter.smoothing.gauss_xminus1d#

medpy.filter.smoothing.gauss_xminus1d(img, sigma, dim=2)[source]#

Applies a X-1D gauss to a copy of a XD image, slicing it along dim.

Essentially uses scipy.ndimage.gaussian_filter, but applies it to a dimension less than the image has.

Parameters:
imgarray_like

The image to smooth.

sigmainteger

The sigma i.e. gaussian kernel size in pixel

diminteger

The dimension along which to apply the filter.

Returns:
gauss_xminus1dndarray

The input image img smoothed by a gaussian kernel along dimension dim.