Image processing

Several libraries bring image processing capabilities to Python. SciPy, the main scientific Python library, contains a few image processing routines. scikit-image is another library dedicated to image processing. We will show an example in this section, inspired by the one at http://scikit-image.org/docs/dev/auto_examples/plot_equalize.html.

When using the Anaconda distribution, scikit-image can be installed with conda install scikit-image.

Let's import some packages.

In [1]: import numpy as np
        import skimage
        from skimage import img_as_float
        import skimage.filters as skif
        from skimage.color import rgb2gray
        import skimage.data as skid
        import skimage.exposure as skie
        from ipywidgets import interact
 import matplotlib.pyplot ...

Get Learning IPython for Interactive Computing and Data Visualization - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.