def smooth_minimal_path(img, nb_pixels=1):

    nx, ny, nz, nt, px, py, pz, pt = img.dim
    from scipy.ndimage.filters import gaussian_filter
    raw_orientation = img.change_orientation()

    img.data = gaussian_filter(img.data, [nb_pixels/px, nb_pixels/py, 0])

    img.change_orientation(raw_orientation)
    return img
Deletes all objects contained in this query set from the database.
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/dev/sct_detect_spinalcord/sct_detect_spinalcord.py/smooth_minimal_path--crossover with--dataset/ETHPy150Open adewes/blitzdb/blitzdb/queryset.py/QuerySet.delete