Miscellaneous routines (scipy.misc)ΒΆ

Various utilities that don’t have another home.

Note that Pillow ( is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.

ascent() Get an 8-bit grayscale bit-depth, 512 x 512 derived image for easy use in demos
bytescale(data[, cmin, cmax, high, low]) Byte scales an array (image).
central_diff_weights(Np[, ndiv]) Return weights for an Np-point central derivative.
derivative(func, x0[, dx, n, args, order]) Find the n-th derivative of a function at a point.
face([gray]) Get a 1024 x 768, color image of a raccoon face.
fromimage(im[, flatten, mode]) Return a copy of a PIL image as a numpy array.
imfilter(arr, ftype) Simple filtering of an image.
imread(name[, flatten, mode]) Read an image from a file as an array.
imresize(arr, size[, interp, mode]) Resize an image.
imrotate(arr, angle[, interp]) Rotate an image counter-clockwise by angle degrees.
imsave(name, arr[, format]) Save an array as an image.
imshow(arr) Simple showing of an image through an external viewer.
lena() Function that previously returned an example image
toimage(arr[, high, low, cmin, cmax, pal, ...]) Takes a numpy array and returns a PIL image.

Deprecated aliases:

comb(*args, **kwds) comb is deprecated!
factorial(*args, **kwds) factorial is deprecated!
factorial2(*args, **kwds) factorial2 is deprecated!
factorialk(*args, **kwds) factorialk is deprecated!
logsumexp(*args, **kwds) logsumexp is deprecated!
pade(*args, **kwds) pade is deprecated!
info(*args, **kwds) Get help information for a function, class, or module.
source(*args, **kwds) source is deprecated!
who(*args, **kwds) who is deprecated!