def resample(data, affine, shape=None, order=_INTERP_ORDER, dtype=None, background=_BACKGROUND): from image_module import cspline_resample3d if shape == None: shape = data.shape if dtype == None: dtype = data.dtype return cspline_resample3d(data, shape, affine, dtype=dtype)