def apply_gaussian(X, sigma):
 return np.array([ndimage.gaussian_filter(x, sigma) for x in X])

def apply_gaussian ( X , sigma ) : return np . array ( [ ndimage . gaussian_filter ( x , sigma ) for x in X ] )
a simple function to apply a gaussian blur on each image in x .