SciPy

scipy.misc.imshow

scipy.misc.imshow(arr)[source]

Simple showing of an image through an external viewer.

This function is only available if Python Imaging Library (PIL) is installed.

Uses the image viewer specified by the environment variable SCIPY_PIL_IMAGE_VIEWER, or if that is not defined then see, to view a temporary file generated from array data.

Parameters:

arr : ndarray

Array of image data to show.

Returns:

None

Examples

>>> a = np.tile(np.arange(255), (255,1))
>>> from scipy import misc
>>> misc.imshow(a)

Previous topic

scipy.misc.imsave

Next topic

scipy.misc.lena