Python, Machine Learning, Artificial Intelligence, Data Science, Data Analytics.
face.max() 250 >>> face.min() 0 b. Geometrical Transformations We can rotate, crop, and flip an image using scipy. >>> face=misc.face(gray=True) >>> lx,ly=face.shape >>> crop=face[lx//4:-lx//4,ly//4:-ly//4] >>> flip=np.flipud(face) >>> from scipy import ndimage >>> rotate=ndimage.rotate(face,45)