imread
is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use imageio.imread
instead.
import imageio
im = imageio.imread('astronaut.png')
im.shape # im is a numpy array
(512, 512, 3)
imageio.imwrite('imageio:astronaut-gray.jpg', im[:, :, 0])
More Related Contents:
- Installing SciPy with pip
- How to install PIL with pip on Mac OS?
- Resampling a numpy array representing an image
- Load just part of an image in python
- Trouble installing SciPy on windows
- How can I install pip on Windows?
- pip install failing with: OSError: [Errno 13] Permission denied on directory
- How to apply piecewise linear fit in Python?
- scipy: savefig without frames, axes, only content
- Installing scipy in Python 3.5 on 32-bit Windows 7 Machine
- Fitting a 2D Gaussian function using scipy.optimize.curve_fit – ValueError and minpack.error
- How to install a Python package from within IPython?
- Does Conda replace the need for virtualenv?
- plotting results of hierarchical clustering ontop of a matrix of data in python
- How can I install PIL on mac os x 10.7.2 Lion
- About the PIL Error — IOError: decoder zip not available
- Getting list of pixel values from PIL
- rpy2 install on windows 7
- Selecting Pandas Columns by dtype
- How to convert a grayscale image into a list of pixel values?
- Use Distance Matrix in scipy.cluster.hierarchy.linkage()?
- How to reverse a color map image to scalar values?
- pygame installation: sdl-config command not found
- What is the fastest way to generate image thumbnails in Python?
- How to share numpy random state of a parent process with child processes?
- Fastest pairwise distance metric in python
- Remove transparency/alpha from any image using PIL
- Error in installing Matplotlib : fatal error C1083
- Why does tkinter (or turtle) seem to be missing or broken? Shouldn’t it be part of the standard library?
- How to smooth a curve for a dataset