def piramide_gaussiana(img, levels): l_gau = [] l_gau.append(img) for i in range(levels): l_gau.append(Image.reduce(l_gau[i])) return l_gau