scipy.misc.imshow¶
-
scipy.misc.
imshow
(*args, **kwds)¶ imshow
is deprecated!imshow
is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Usematplotlib.pyplot.imshow
instead.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.
Warning
This function uses
bytescale
under the hood to rescale images to use the full (0, 255) range ifmode
is one ofNone, 'L', 'P', 'l'
. It will also cast data for 2-D images touint32
formode=None
(which is the default).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)