Python, Machine Learning, Artificial Intelligence, Data Science, Data Analytics.
face=misc.face(gray=True).astype(float) >>> blurred=ndimage.gaussian_filter(face,3) Do you know Comparison Between Python Iterators and Generators We can also add a Laplacian approximation to increase the weight of the edges: >>> filter_blurred=ndimage.gaussian_filter(blurred,1) >>> alpha=30 >>>